Skip to content

Commit

Permalink
style: lint cookbooks
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Feb 5, 2021
1 parent f56fbfd commit c037e59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion test/jwe/cookbook.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,10 @@ Promise.all([

for (const vector of vectors) {
let conditional;
if (('WEBCRYPTO' in process.env || 'CRYPTOKEY' in process.env) && vector.webcrypto === false) {
if (
('WEBCRYPTO' in process.env || 'CRYPTOKEY' in process.env) &&
vector.webcrypto === false
) {
conditional = test.failing;
} else {
conditional = test;
Expand Down
5 changes: 4 additions & 1 deletion test/jws/cookbook.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,10 @@ Promise.all([

for (const vector of vectors) {
let conditional;
if (('WEBCRYPTO' in process.env || 'CRYPTOKEY' in process.env) && vector.webcrypto === false) {
if (
('WEBCRYPTO' in process.env || 'CRYPTOKEY' in process.env) &&
vector.webcrypto === false
) {
conditional = test.failing;
} else {
conditional = test;
Expand Down

0 comments on commit c037e59

Please sign in to comment.