lib_um_crypto_rust/um_wasm_loader/test.mjs

9 lines
230 B
JavaScript
Raw Permalink Normal View History

import { NCMFile, ready } from './dist/loader.mjs';
ready.then(() => {
const ncm = new NCMFile();
let n = ncm.open(new Uint8Array([]));
console.assert(n !== 0, 'n should not be 0', { n });
console.log('mjs test ok');
});