mirror of
https://github.com/cupcakearmy/svelte-i18n.git
synced 2024-11-16 09:59:58 +01:00
test: 💍 fix broken test
This commit is contained in:
parent
d3c8cfcbc1
commit
7721b64e25
2200
example/package-lock.json
generated
Normal file
2200
example/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -10,7 +10,7 @@
|
||||
"compression": "^1.7.1",
|
||||
"polka": "next",
|
||||
"sirv": "^0.4.0",
|
||||
"svelte-i18n": "^2.0.0-alpha.2"
|
||||
"svelte-i18n": "^2.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.0.0",
|
||||
|
@ -229,7 +229,7 @@ describe('custom formats', () => {
|
||||
customDate: { year: 'numeric', era: 'short' },
|
||||
},
|
||||
time: {
|
||||
customTime: { hour: '2-digit', month: 'narrow' },
|
||||
customTime: { hour: '2-digit', minute: '2-digit' },
|
||||
},
|
||||
})
|
||||
|
||||
@ -243,6 +243,6 @@ describe('custom formats', () => {
|
||||
|
||||
expect(
|
||||
_.time(new Date(2019, 0, 1, 2, 0, 0), { format: 'customTime' })
|
||||
).toEqual('Jan, 02')
|
||||
).toEqual('02:00')
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user