mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 10:10:52 +00:00
test(js) Fix expectations regarding given locales.
This commit is contained in:
parent
9339a55f3e
commit
54523d82ed
@ -160,7 +160,7 @@ fn to_locale_date_string() {
|
||||
let date = new Date(Date.UTC(2012, 11, 20, 3, 0, 0));
|
||||
let options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
|
||||
|
||||
assert.equal(wasm.to_locale_date_string(date, 'de-DE', options), 'Thursday, December 20, 2012');
|
||||
assert.equal(wasm.to_locale_date_string(date, 'de-DE', options), 'Donnerstag, 20. Dezember 2012');
|
||||
}
|
||||
"#)
|
||||
.test()
|
||||
@ -188,7 +188,7 @@ fn to_locale_string() {
|
||||
|
||||
export function test() {
|
||||
let date = new Date(Date.UTC(2012, 11, 20, 3, 0, 0));
|
||||
assert.equal(wasm.to_locale_string(date, 'en-GB', { timeZone: 'UTC' }), "12/20/2012, 3:00:00 AM");
|
||||
assert.equal(wasm.to_locale_string(date, 'en-GB', { timeZone: 'UTC' }), "20/12/2012, 03:00:00");
|
||||
}
|
||||
"#)
|
||||
.test()
|
||||
|
Loading…
x
Reference in New Issue
Block a user