Introduce remove database test
parent
b35271a197
commit
3d9584d79d
|
@ -13,6 +13,7 @@ import {
|
|||
loadPermissions,
|
||||
deleteRole,
|
||||
deleteUser,
|
||||
removeDatabase,
|
||||
filterRoles,
|
||||
filterUsers,
|
||||
} from 'src/admin/actions'
|
||||
|
@ -148,6 +149,13 @@ describe('Admin.Reducers', () => {
|
|||
|
||||
expect(actual.databases).to.deep.equal(expected)
|
||||
})
|
||||
|
||||
it('can remove a database', () => {
|
||||
const actual = reducer(state, removeDatabase(db1))
|
||||
const expected = []
|
||||
|
||||
expect(actual.databases).to.deep.equal(expected)
|
||||
})
|
||||
})
|
||||
|
||||
it('it can add a user', () => {
|
||||
|
|
Loading…
Reference in New Issue