feat: switch to wast test

This commit is contained in:
Sven SAULEAU 2018-05-28 11:14:08 +02:00
parent 0e58d54f5d
commit 8f269150dc
No known key found for this signature in database
GPG Key ID: F5464AC83B687AD1
3 changed files with 5 additions and 6 deletions

View File

@ -1,10 +1,5 @@
// (module
// (import "./env.js" "n" (global i32))
// (global (export "value") i32 (get_global 0))
// )
it("should allow global with imported global as initilizer", function() {
return import("./module.wasm").then(function({value}) {
return import("./module.wat").then(function({value}) {
expect(value).toEqual(33);
});
});

View File

@ -0,0 +1,4 @@
(module
(import "./env.js" "n" (global i32))
(global (export "value") i32 (get_global 0))
)