From 54523d82eda1bc38e02c1db7dadabb7f419eb02c Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Tue, 3 Jul 2018 14:37:38 +0200 Subject: [PATCH] test(js) Fix expectations regarding given locales. --- tests/all/js_globals/Date.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/all/js_globals/Date.rs b/tests/all/js_globals/Date.rs index 6a8a66f1..e1ff7c85 100644 --- a/tests/all/js_globals/Date.rs +++ b/tests/all/js_globals/Date.rs @@ -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()