Open davidyuk opened 3 years ago
I fixed this error in 97b1142c2e3e5a8fd3c4b8a98141c62d73b3f5c2, but there's a new one because emscripten loads the wasm file in a different way if it's run in node. I'm too lazy to fix it now, you can dig into it if you want. Here's a test:
describe('Bundled', function () {
global.chai = require('chai');
before(() => {
global.argon2 = require('../dist/argon2-bundled.min');
});
after(() => {
global.argon2 = require('..');
});
require('./suite/hash');
require('./suite/verify');
});
Save it as test/bundled.js
and then run:
npm run build-bundle && npm test test/bundled
argon2-browser version is 1.18.0