|
|
|
@ -123,9 +123,6 @@ describe("Objects actions", () => { |
|
|
|
|
objects: { currentPrefix: "" } |
|
|
|
|
}) |
|
|
|
|
const expectedActions = [ |
|
|
|
|
{ |
|
|
|
|
type: "alert/CLEAR" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: "objects/SET_LIST", |
|
|
|
|
objects: [{ name: "test1" }, { name: "test2" }], |
|
|
|
@ -157,9 +154,6 @@ describe("Objects actions", () => { |
|
|
|
|
objects: { currentPrefix: "" } |
|
|
|
|
}) |
|
|
|
|
const expectedActions = [ |
|
|
|
|
{ |
|
|
|
|
type: "alert/CLEAR" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: "objects/APPEND_LIST", |
|
|
|
|
objects: [{ name: "test1" }, { name: "test2" }], |
|
|
|
@ -183,15 +177,13 @@ describe("Objects actions", () => { |
|
|
|
|
objects: { currentPrefix: "" } |
|
|
|
|
}) |
|
|
|
|
const expectedActions = [ |
|
|
|
|
{ |
|
|
|
|
type: "alert/CLEAR" |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
type: "alert/SET", |
|
|
|
|
alert: { |
|
|
|
|
type: "danger", |
|
|
|
|
message: "listobjects is denied", |
|
|
|
|
id: alertActions.alertId |
|
|
|
|
id: alertActions.alertId, |
|
|
|
|
autoClear: true |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
@ -252,7 +244,6 @@ describe("Objects actions", () => { |
|
|
|
|
}) |
|
|
|
|
const expectedActions = [ |
|
|
|
|
{ type: "objects/SET_CURRENT_PREFIX", prefix: "abc/" }, |
|
|
|
|
{ type: "alert/CLEAR" }, |
|
|
|
|
{ type: "objects/CHECKED_LIST_RESET" } |
|
|
|
|
] |
|
|
|
|
store.dispatch(actionsObjects.selectPrefix("abc/")) |
|
|
|
|