@@ -20,15 +20,16 @@ vi.mock('../src/intl', async () => {
20
20
}
21
21
} )
22
22
23
- import { createCoreContext as context , NOT_REOSLVED } from '../src/context'
24
- import { number } from '../src/number'
25
- import { CoreErrorCodes , errorMessages } from '../src/errors'
23
+ import { compile } from '../src/compilation'
26
24
import {
27
- registerMessageCompiler ,
28
- registerLocaleFallbacker
25
+ createCoreContext as context ,
26
+ NOT_RESOLVED ,
27
+ registerLocaleFallbacker ,
28
+ registerMessageCompiler
29
29
} from '../src/context'
30
- import { compile } from '../src/compilation '
30
+ import { CoreErrorCodes , errorMessages } from '../src/errors '
31
31
import { fallbackWithLocaleChain } from '../src/fallbacker'
32
+ import { number } from '../src/number'
32
33
import { NumberFormats } from '../src/types/index'
33
34
34
35
type MyNumberSchema = {
@@ -238,7 +239,7 @@ describe('context unresolving option', () => {
238
239
numberFormats
239
240
} )
240
241
241
- expect ( number ( ctx , 0.99 , 'percent' ) ) . toEqual ( NOT_REOSLVED )
242
+ expect ( number ( ctx , 0.99 , 'percent' ) ) . toEqual ( NOT_RESOLVED )
242
243
expect ( mockWarn ) . not . toHaveBeenCalled ( )
243
244
} )
244
245
@@ -257,7 +258,7 @@ describe('context unresolving option', () => {
257
258
numberFormats
258
259
} )
259
260
260
- expect ( number ( ctx , 123456789 , 'custom' ) ) . toEqual ( NOT_REOSLVED )
261
+ expect ( number ( ctx , 123456789 , 'custom' ) ) . toEqual ( NOT_RESOLVED )
261
262
expect ( mockWarn ) . not . toHaveBeenCalled ( )
262
263
} )
263
264
} )
0 commit comments