Adding in wrapper file to fix circular dependency with Webpack 5 (#2110)

* Adding in wrapper file to fix circular dependency with Webpack 5

* Running rustfmt

* Fixing unit tests
This commit is contained in:
Pauan
2020-04-29 17:55:28 +02:00
committed by GitHub
parent a521c9012c
commit e16f7e41bf
9 changed files with 55 additions and 19 deletions

View File

@ -112,7 +112,7 @@ fn runtest(test: &Path) -> Result<()> {
let wat = sanitize_wasm(&wasm)?;
assert_same(&wat, &test.with_extension("wat"))?;
} else {
let js = fs::read_to_string(td.path().join("reference_test.js"))?;
let js = fs::read_to_string(td.path().join("reference_test_bg.js"))?;
assert_same(&js, &test.with_extension("js"))?;
let wat = sanitize_wasm(&td.path().join("reference_test_bg.wasm"))?;
assert_same(&wat, &test.with_extension("wat"))?;