File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
packages/i18n/src/__tests__ Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { browser } from '@wxt-dev/browser';
44
55vi . mock ( '@wxt-dev/browser' , async ( ) => {
66 const { vi } = await import ( 'vitest' ) ;
7+
78 return {
89 browser : {
910 i18n : {
@@ -14,7 +15,7 @@ vi.mock('@wxt-dev/browser', async () => {
1415} ) ;
1516const getMessageMock = vi . mocked ( browser . i18n . getMessage ) ;
1617
17- const n : number = 1 ;
18+ const n = 1 ;
1819
1920describe ( 'I18n Types' , ( ) => {
2021 beforeEach ( ( ) => {
@@ -47,6 +48,7 @@ describe('I18n Types', () => {
4748 describe ( 't' , ( ) => {
4849 it ( 'should only allow passing valid combinations of arguments' , ( ) => {
4950 i18n . t ( 'simple' ) ;
51+ // TODO: WHY THERE'S SO MUCH TS-EXPECT-ERRORS?
5052 // @ts -expect-error
5153 i18n . t ( 'simple' , [ ] ) ;
5254 // @ts -expect-error
Original file line number Diff line number Diff line change 1- import { describe , it , expect } from 'vitest' ;
1+ import { describe , expect , it } from 'vitest' ;
22import { ChromeMessage } from '../build' ;
33import {
44 applyChromeMessagePlaceholders ,
@@ -43,7 +43,7 @@ describe('Utils', () => {
4343 } ) ;
4444
4545 describe ( 'getSubstitutionCount' , ( ) => {
46- it ( 'should return the last substution present in the message' , ( ) => {
46+ it ( 'should return the last substitution present in the message' , ( ) => {
4747 expect ( getSubstitutionCount ( 'I like $1, but I like $2 better' ) ) . toBe ( 2 ) ;
4848 } ) ;
4949
You can’t perform that action at this time.
0 commit comments