@@ -20,16 +20,15 @@ vi.mock('../src/intl', async () => {
2020 }
2121} )
2222
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'
2426import {
25- createCoreContext as context ,
26- NOT_RESOLVED ,
27- registerLocaleFallbacker ,
28- registerMessageCompiler
27+ registerMessageCompiler ,
28+ registerLocaleFallbacker
2929} from '../src/context'
30- import { CoreErrorCodes , errorMessages } from '../src/errors '
30+ import { compile } from '../src/compilation '
3131import { fallbackWithLocaleChain } from '../src/fallbacker'
32- import { number } from '../src/number'
3332import { NumberFormats } from '../src/types/index'
3433
3534type MyNumberSchema = {
@@ -239,7 +238,7 @@ describe('context unresolving option', () => {
239238 numberFormats
240239 } )
241240
242- expect ( number ( ctx , 0.99 , 'percent' ) ) . toEqual ( NOT_RESOLVED )
241+ expect ( number ( ctx , 0.99 , 'percent' ) ) . toEqual ( NOT_REOSLVED )
243242 expect ( mockWarn ) . not . toHaveBeenCalled ( )
244243 } )
245244
@@ -258,7 +257,7 @@ describe('context unresolving option', () => {
258257 numberFormats
259258 } )
260259
261- expect ( number ( ctx , 123456789 , 'custom' ) ) . toEqual ( NOT_RESOLVED )
260+ expect ( number ( ctx , 123456789 , 'custom' ) ) . toEqual ( NOT_REOSLVED )
262261 expect ( mockWarn ) . not . toHaveBeenCalled ( )
263262 } )
264263} )
0 commit comments