Skip to content

Commit

Permalink
Fix dictionary data write (#607)
Browse files Browse the repository at this point in the history
  • Loading branch information
toasted-nutbread authored Feb 1, 2024
1 parent dfd42ba commit 770054c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/dictionary-data.write.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ const dirname = path.dirname(fileURLToPath(import.meta.url));
const dictionaryName = 'Test Dictionary 2';
const test = await createTranslatorTest(void 0, path.join(dirname, 'data/dictionaries/valid-dictionary1'), dictionaryName);

test('Write dictionary data expected data', async ({translator, expect}) => {
test('Write dictionary data expected data', async ({window, translator, expect}) => {
// The window property needs to be referenced for it to be initialized.
// It is needed for DOM access for structured content.
void window;
const testInputsFilePath = path.join(dirname, 'data/translator-test-inputs.json');
/** @type {import('test/translator').TranslatorTestInputs} */
const {optionsPresets, tests} = parseJson(readFileSync(testInputsFilePath, {encoding: 'utf8'}));
Expand Down

0 comments on commit 770054c

Please sign in to comment.