Introduce remove database test

pull/10616/head
Andrew Watkins 2017-03-21 15:51:14 -07:00
parent b35271a197
commit 3d9584d79d
1 changed files with 8 additions and 0 deletions

View File

@ -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', () => {