node/test/wpt/test-webcrypto.js

14 lines
265 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');
runner.pretendGlobalThisAs('Window');
runner.runJsTests();