mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-25 19:11:45 +03:00
Change assert to assert.ok to fix test
This commit is contained in:
parent
260183a522
commit
9f3722bbd9
@ -22,8 +22,8 @@ fn is_integer() {
|
|||||||
import * as wasm from "./out";
|
import * as wasm from "./out";
|
||||||
|
|
||||||
export function test() {
|
export function test() {
|
||||||
assert(wasm.is_integer(123));
|
assert.ok(wasm.is_integer(123));
|
||||||
assert(!wasm.is_integer(123.45));
|
assert.ok(!wasm.is_integer(123.45));
|
||||||
}
|
}
|
||||||
"#)
|
"#)
|
||||||
.test()
|
.test()
|
||||||
|
Loading…
Reference in New Issue
Block a user