mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
languageSchema does not lowercase the code
This commit is contained in:
parent
d791a9b350
commit
2150259aba
1 changed files with 2 additions and 1 deletions
|
|
@ -3,5 +3,6 @@ import { assertEquals } from '@std/assert';
|
||||||
import { languageSchema } from './schema.ts';
|
import { languageSchema } from './schema.ts';
|
||||||
|
|
||||||
Deno.test('languageSchema', () => {
|
Deno.test('languageSchema', () => {
|
||||||
assertEquals(languageSchema.safeParse('en').success, true);
|
assertEquals(languageSchema.safeParse('pt').success, true);
|
||||||
|
assertEquals(languageSchema.safeParse('PT').success, false);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue