diff --git a/ui/src/app/settings/reducers/scripts/scripts.test.js b/ui/src/app/settings/reducers/scripts/scripts.test.js index 6b2d82acbd8..8f256e44323 100644 --- a/ui/src/app/settings/reducers/scripts/scripts.test.js +++ b/ui/src/app/settings/reducers/scripts/scripts.test.js @@ -82,7 +82,7 @@ describe("scripts reducer", () => { }); }); - it("should correctly reduce DELETE_SCRIPT_NOTIFY", () => { + it("should correctly reduce DELETE_SCRIPT_SUCCESS", () => { expect( scripts( { @@ -94,8 +94,8 @@ describe("scripts reducer", () => { saving: false }, { - payload: 2, - type: "DELETE_SCRIPT_NOTIFY" + type: "DELETE_SCRIPT_SUCCESS", + payload: 2 } ) ).toEqual({ @@ -103,7 +103,7 @@ describe("scripts reducer", () => { items: [{ id: 1, name: "script-1" }], loaded: false, loading: false, - saved: false, + saved: true, saving: false }); });