Skip to content

Commit 16cbca7

Browse files
ohanaralexcrichton
authored andcommitted
deal with yet another locale/platform issue (#480)
This test fails on my system. As previously decided, until we can figure out a better solution for this issue, for now we just check to make sure the output is a non-empty string.
1 parent 0b78b34 commit 16cbca7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/all/js_globals/Array.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,9 +962,11 @@ fn to_locale_string() {
962962
import * as wasm from "./out";
963963
964964
export function test() {
965-
assert.equal(wasm.array_to_locale_string([1, 'a', new Date('21 Dec 1997 14:12:00 UTC')], 'en', {timeZone: 'UTC'}), '1,a,12/21/1997, 2:12:00 PM');
965+
const output = wasm.array_to_locale_string([1, 'a', new Date('21 Dec 1997 14:12:00 UTC')], 'en', {timeZone: 'UTC'});
966+
assert.equal(typeof output, 'string');
967+
assert.ok(output.length > 0);
966968
}
967969
"#,
968970
)
969971
.test()
970-
}
972+
}

0 commit comments

Comments
 (0)