diff options
Diffstat (limited to 'test/bun.js/crypto-scrypt.test.js')
-rw-r--r-- | test/bun.js/crypto-scrypt.test.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/test/bun.js/crypto-scrypt.test.js b/test/bun.js/crypto-scrypt.test.js index 4b9f632c0..e188e9fae 100644 --- a/test/bun.js/crypto-scrypt.test.js +++ b/test/bun.js/crypto-scrypt.test.js @@ -185,10 +185,7 @@ it("scrypt bad", () => { const expected = { message: /Invalid scrypt param/, }; - assert.throws( - () => crypto.scryptSync("pass", "salt", 1, options), - expected, - ); + assert.throws(() => crypto.scryptSync("pass", "salt", 1, options), expected); } }); @@ -197,10 +194,7 @@ it("scrypt toobig", () => { const expected = { message: /Invalid scrypt param/, }; - assert.throws( - () => crypto.scryptSync("pass", "salt", 1, options), - expected, - ); + assert.throws(() => crypto.scryptSync("pass", "salt", 1, options), expected); } }); |