Skip to content

Commit

Permalink
adjust profile test
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
  • Loading branch information
andrewwhitehead committed Sep 11, 2023
1 parent decf917 commit 93e28be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wrappers/javascript/aries-askar-nodejs/tests/store.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@ describe('Store and Session', () => {
// Opening removed profile should fail
await expect(store.session(profile).open()).rejects.toThrowError(AriesAskarError)

// Unknown profile
const session6 = await store.session('unknown profile').open()
await expect(session6.count(firstEntry)).rejects.toThrowError(AriesAskarError)
await session6.close()
// Unknown unknown profile should fail
await expect(store.session('unknown profile').open()).rejects.toThrowError(AriesAskarError)

await expect(store.createProfile(profile)).resolves.toStrictEqual(profile)

const session7 = await store.session(profile).open()
await expect(session7.count(firstEntry)).resolves.toStrictEqual(0)
Expand Down

0 comments on commit 93e28be

Please sign in to comment.