Add missing unit tests to JavaScript and React components (#5505)

Add the missing unit tests login, bucket listing, and bucket searching functionalities.
This commit is contained in:
Kaan Kabalak
2018-02-12 13:27:52 -08:00
committed by Harshavardhana
parent feb726dd98
commit ead6337eab
14 changed files with 354 additions and 31 deletions
@@ -54,4 +54,16 @@ describe("Alert actions", () => {
const actions = store.getActions()
expect(actions).toEqual(expectedActions)
})
it("creates alert/CLEAR action directly", () => {
const store = mockStore()
const expectedActions = [
{
type: "alert/CLEAR"
}
]
store.dispatch(actionsAlert.clear())
const actions = store.getActions()
expect(actions).toEqual(expectedActions)
})
})