15 lines
488 B
TypeScript
15 lines
488 B
TypeScript
import { readFileSync } from 'node:fs';
|
|
import { resolve } from 'node:path';
|
|
import { describe, expect, it } from 'vitest';
|
|
|
|
describe('canonical documentation', () => {
|
|
it('keeps the served 2D module map identical to docs source', () => {
|
|
const canonical = readFileSync(resolve('docs/modules-dwg-dxf.html'));
|
|
const served = readFileSync(
|
|
resolve('apps/viewer-2d-sample/public/docs/modules-dwg-dxf.html'),
|
|
);
|
|
|
|
expect(served.equals(canonical)).toBe(true);
|
|
});
|
|
});
|