25 lines
773 B
JavaScript
25 lines
773 B
JavaScript
const test = require('node:test');
|
|
const assert = require('node:assert/strict');
|
|
const fs = require('node:fs');
|
|
const path = require('node:path');
|
|
|
|
const ROOT = path.resolve(__dirname, '..');
|
|
|
|
test('issue #16 verification doc captures dismantle evidence on main', () => {
|
|
const doc = fs.readFileSync(path.join(ROOT, 'docs', 'issue-16-verification.md'), 'utf8');
|
|
const required = [
|
|
'# Issue #16 Verification',
|
|
'## Status: ✅ ALREADY IMPLEMENTED ON MAIN',
|
|
'js/dismantle.js',
|
|
'tests/dismantle.test.cjs',
|
|
'PR #116',
|
|
'PR #118',
|
|
'node --test tests/dismantle.test.cjs',
|
|
'The Unbuilding',
|
|
'That is enough.',
|
|
];
|
|
for (const snippet of required) {
|
|
assert.match(doc, new RegExp(snippet.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')));
|
|
}
|
|
});
|