Skip to content

Commit

Permalink
bug-fix: minor
Browse files Browse the repository at this point in the history
  • Loading branch information
k1ch committed Nov 8, 2024
1 parent 1d755f4 commit 705055e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions database/test/db-admin-rolepermissions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('Admin role permissions view', () => {

it('Should return an array of inserted rolepermissions records', async () => {
const [rolePermission] = await adminRolePermissions.insertRolePermissions(validRoleKey, [validPermissionKey])
assert.ok(!!rolePermission)
assert.ok(rolePermission)
assert.equal(rolePermission.rolekey, validRoleKey)
assert.equal(rolePermission.permissionkey, validPermissionKey)
})
Expand Down Expand Up @@ -72,7 +72,7 @@ describe('Admin role permissions view', () => {
})

afterEach(async () => {
await usherDb('rolepermissions').where({ rolekey: validRoleKey, permissionkey: validPermissionKey }).del()
await usherDb('rolepermissions').where({ rolekey: validRoleKey }).del()
})
})

Expand Down

0 comments on commit 705055e

Please sign in to comment.