mirror of https://github.com/webpack/webpack.git
7 lines
200 B
JavaScript
7 lines
200 B
JavaScript
|
it("should allow to run a WebAssembly module with imports", function() {
|
||
|
return import("./wasm.wat").then(function(wasm) {
|
||
|
const result = wasm.addNumber(20);
|
||
|
expect(result).toEqual(42);
|
||
|
});
|
||
|
});
|