Skip to content

Commit

Permalink
test: remove language tag tests as it doesn't really test the correct…
Browse files Browse the repository at this point in the history
…ness of tags
  • Loading branch information
zackpollard committed Jun 13, 2024
1 parent 97b953a commit ff4b9d2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions web/src/lib/i18n.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { langs } from '$lib/constants';
import messages from '$lib/i18n/en.json';
import { exec as execCallback } from 'node:child_process';
import { promisify } from 'node:util';
Expand Down Expand Up @@ -31,16 +30,4 @@ describe('i18n', () => {
// Only translations directly using the store seem to get extracted
expect({ ...extractedMessages, ...existingMessages }).toEqual(existingMessages);
});

describe('language tags', () => {
for (const lang of langs) {
if (lang.code === 'dev') {
continue;
}

test(`language tag ${lang.code} is valid`, () => {
expect(Intl.NumberFormat.supportedLocalesOf(lang.code)).toHaveLength(1);
});
}
});
});

0 comments on commit ff4b9d2

Please sign in to comment.