mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-25 11:02:11 +03:00
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.
This commit is contained in:
parent
0b78b345e1
commit
16cbca74e2
@ -962,9 +962,11 @@ fn to_locale_string() {
|
||||
import * as wasm from "./out";
|
||||
|
||||
export function test() {
|
||||
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');
|
||||
const output = wasm.array_to_locale_string([1, 'a', new Date('21 Dec 1997 14:12:00 UTC')], 'en', {timeZone: 'UTC'});
|
||||
assert.equal(typeof output, 'string');
|
||||
assert.ok(output.length > 0);
|
||||
}
|
||||
"#,
|
||||
)
|
||||
.test()
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user