Skip to content

Commit

Permalink
test: fix conditional calls
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Oct 15, 2021
1 parent 51cf51f commit 4b296f0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/jwe/smoke.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,12 @@ Promise.all([
return run;
}

conditional({ webcrypto: 0 }, smoke, 'rsa1_5');
conditional({ webcrypto: 0, electron: 0 }, smoke, 'x25519');
conditional({ webcrypto: 0, electron: 0 }, smoke, 'x448');
conditional({ webcrypto: 0 }, 'as keyobject', smoke, 'oct256c', undefined, undefined, true);
conditional({ webcrypto: 0 }, 'as keyobject', smoke, 'oct384c', undefined, undefined, true);
conditional({ webcrypto: 0 }, 'as keyobject', smoke, 'oct512c', undefined, undefined, true);
conditional({ webcrypto: 0 })(smoke, 'rsa1_5');
conditional({ webcrypto: 0, electron: 0 })(smoke, 'x25519');
conditional({ webcrypto: 0, electron: 0 })(smoke, 'x448');
conditional({ webcrypto: 0 })('as keyobject', smoke, 'oct256c', undefined, undefined, true);
conditional({ webcrypto: 0 })('as keyobject', smoke, 'oct384c', undefined, undefined, true);
conditional({ webcrypto: 0 })('as keyobject', smoke, 'oct512c', undefined, undefined, true);
conditional({ electron: 0 })(smoke, 'octAny');
conditional({ electron: 0 })(
'as keyobject (deriveBits)',
Expand All @@ -360,9 +360,9 @@ Promise.all([
conditional({ electron: 0 })('as keyobject', smoke, 'oct192', ['wrapKey'], ['unwrapKey'], true);
conditional({ electron: 0 })(smoke, 'oct256');
conditional({ electron: 0 })('as keyobject', smoke, 'oct256', ['wrapKey'], ['unwrapKey'], true);
conditional({ electron: 0 }, smoke, 'p256kw');
conditional({ electron: 0 }, smoke, 'p384kw');
conditional({ electron: 0 }, smoke, 'p521kw');
conditional({ electron: 0 })(smoke, 'p256kw');
conditional({ electron: 0 })(smoke, 'p384kw');
conditional({ electron: 0 })(smoke, 'p521kw');
},
(err) => {
test('failed to import', (t) => {
Expand Down

0 comments on commit 4b296f0

Please sign in to comment.