Files
blb-throne-of-the-bone-king/__tests__/toolkitDataPlaceholders.test.js
T

37 lines
793 B
JavaScript
Raw Normal View History

2026-06-16 11:19:24 -05:00
const { readFileSync } = require('node:fs');
const path = require('node:path');
const toolkitPlaceholderFiles = [
'audio.json',
'credits.json',
'endings.json',
'factions.json',
'flags.json',
'lore.json',
'map.json',
'opening.json',
'petitioners.json',
'references.json',
'resources.json',
'rulings.json',
'seed.json',
'story.json',
];
describe('toolkit data placeholders', () => {
it('provides an empty array JSON file for every toolkit section', () => {
for (const fileName of toolkitPlaceholderFiles) {
const filePath = path.join(
process.cwd(),
'src',
'data',
'toolkit',
fileName,
);
const content = JSON.parse(readFileSync(filePath, 'utf8'));
expect(content).toEqual([]);
}
});
});