Skip to content

Commit

Permalink
chore: update garbados-crypt
Browse files Browse the repository at this point in the history
  • Loading branch information
garbados committed Aug 6, 2021
1 parent 6af9409 commit 7d7bb24
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"homepage": "https://github.com/calvinmetcalf/crypto-pouch",
"dependencies": {
"garbados-crypt": "^2.0.0-beta",
"garbados-crypt": "^3.0.0-beta",
"transform-pouch": "^1.1.5"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,9 @@ describe('crypto-pouch', function () {
it('should fail when using a bad password', async function () {
await this.db.put({ _id: 'a', hello: 'world' })
this.db.removeCrypto()
await this.db.crypto(BAD_PASS)
try {
await this.db.crypto(BAD_PASS)
await this.db.get('a')
throw new Error('read succeeded but should have failed')
} catch (error) {
assert.equal(error.message, 'Could not decrypt!')
Expand Down

0 comments on commit 7d7bb24

Please sign in to comment.