mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-31 09:21:05 +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 date = new Date(Date.UTC(2012, 11, 20, 3, 0, 0));
|
||||||
let options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
|
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()
|
.test()
|
||||||
@ -188,7 +188,7 @@ fn to_locale_string() {
|
|||||||
|
|
||||||
export function test() {
|
export function test() {
|
||||||
let date = new Date(Date.UTC(2012, 11, 20, 3, 0, 0));
|
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()
|
.test()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user