node/test/wpt/test-webcrypto.js
Filip Skokan c3ff198a77
test: update WPT runner
PR-URL: https://github.com/nodejs/node/pull/43455
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
2022-08-10 12:39:20 +00:00

18 lines
378 B
JavaScript

'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
const { WPTRunner } = require('../common/wpt');
const runner = new WPTRunner('WebCryptoAPI');
// Set Node.js flags required for the tests.
runner.setFlags(['--experimental-global-webcrypto']);
runner.setInitScript(`
global.location = {};
`);
runner.runJsTests();