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