feat(changelog): add release ledger data
Lint and Build Checks / Lint, Test, and Build (push) Failing after 560h18m4s
Lint and Build Checks / Lint, Test, and Build (push) Failing after 560h18m4s
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
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([]);
|
||||
}
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user