test: fix test

This commit is contained in:
Nolan Lawson 2021-04-11 10:29:37 -07:00
parent aba58bb79c
commit 559e3d80eb
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ describe('test-intl.js', () => {
it('has no unused intl strings', async () => { it('has no unused intl strings', async () => {
const keys = Object.keys(enIntl) const keys = Object.keys(enIntl)
const allSourceFilenames = (await globby([path.join(__dirname, '../../src/**/*.{js,html}')])) const allSourceFilenames = (await globby([path.join(__dirname, '../../src/**/*.{js,html,json}')]))
.filter(file => !file.includes('/intl/')) .filter(file => !file.includes('/intl/'))
const allSourceFiles = await Promise.all( const allSourceFiles = await Promise.all(
allSourceFilenames.map(async name => ({ name, content: await readFile(name, 'utf8') })) allSourceFilenames.map(async name => ({ name, content: await readFile(name, 'utf8') }))