blob: 38d2b9e5fd15468d05c54874fd54ad14cde0fdb1 [file]
const assert = require('node:assert/strict');
const fs = require('node:fs');
const path = require('node:path');
const test = require('node:test');
const sourcePath = path.join(__dirname, 'index.tsx');
test('doc breadcrumb version comes from the current docs page context', () => {
const source = fs.readFileSync(sourcePath, 'utf8');
assert.match(source, /useDocsVersion/);
assert.doesNotMatch(source, /useActivePluginAndVersion/);
});