Skip to content

Commit 4ddfe36

Browse files
author
Juho Enala
committed
Minor fix
1 parent f2806a4 commit 4ddfe36

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test.js

+6
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,16 @@ describe('Crypt', function() {
269269
assert.equal(verified, true);
270270
};
271271

272+
// Save original md
273+
const originalMd = crypt.options.md;
274+
272275
// Test sign & verify with all the message digests
273276
['sha1', 'sha256', 'sha384', 'sha512', 'md5'].map(md =>
274277
_testSignAndVerify(md),
275278
);
279+
280+
// Revert original md after testing
281+
crypt.options.md = originalMd;
276282
});
277283
});
278284

0 commit comments

Comments
 (0)