hugomrdias / rabin-wasm

Rabin fingerprinting implemented in WASM
28 stars 7 forks source link

Does this work in the browser yet? #4

Closed mikeal closed 5 years ago

mikeal commented 5 years ago

It looks like the browser support is there but I’m getting errors trying to run any tests with aegir and this modules doesn’t have any of its own tests. I get the same error trying to run the tests from the js-ipfs importer that relies on this.

Test Browser

START:
ℹ 「wdm」:
ℹ 「wdm」: Compiled successfully.
ℹ 「wdm」: Compiling...
  「wdm」:
ℹ 「wdm」: Compiled with warnings.
  ✖ single chunk vs multi-chunk

Finished in 0.019 secs / 0.012 secs @ 03:35:58 GMT+0000 (Coordinated Universal Time)

SUMMARY:
✔ 0 tests completed
✖ 1 test failed

FAILED TESTS:
  ✖ single chunk vs multi-chunk
    HeadlessChrome 77.0.3833 (Linux 0.0.0)
  ReferenceError: compiled is not defined
      at create (/root/rabin-generator/node_modules/rabin-wasm/src/index.js:8:1 <- node_modules/aegir/src/config/karma-entry.js:21802:12)

Command failed: karma start /root/rabin-generator/node_modules/aegir/src/config/karma.conf.js --files-custom --log-level error
mikeal commented 5 years ago

If you want to see a full log of the test failure it’s here https://github.com/mikeal/rabin-generator/runs/171558638