test: 💍 fix broken test

This commit is contained in:
Christian Kaisermann 2019-11-22 14:52:29 -03:00
parent d3c8cfcbc1
commit 7721b64e25
3 changed files with 2203 additions and 3 deletions

2200
example/package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -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",

View File

@ -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')
})
})