Skip to content

Commit

Permalink
fixup! ✨(website) create language feature
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoLC committed Aug 8, 2023
1 parent d7a0692 commit cb07b4b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ describe('hook/useLanguage', () => {

expect(result.current?.locale).toEqual('en-US');
expect(result.current?.defaultLocale).toEqual('en');
expect(consoleWarn).toHaveBeenCalled();
expect(consoleWarn).toHaveBeenCalledWith(
'[intl] No translation found for language en-US',
);
});

it('checks intl is init with another language', async () => {
Expand All @@ -39,6 +41,8 @@ describe('hook/useLanguage', () => {

expect(result.current?.locale).toEqual('fr-FR');
expect(result.current?.defaultLocale).toEqual('en');
expect(consoleWarn).toHaveBeenCalled();
expect(consoleWarn).toHaveBeenCalledWith(
'[intl] No translation found for language fr-FR',
);
});
});

0 comments on commit cb07b4b

Please sign in to comment.