From 659fca312bd3426216ddda01790303bfcc0b1fa8 Mon Sep 17 00:00:00 2001 From: Kit Randel Date: Tue, 10 Sep 2019 12:16:15 +1200 Subject: [PATCH] Testfix --- ui/src/app/settings/reducers/scripts/scripts.test.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 }); });