diff options
author | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-17 10:50:12 -0600 |
---|---|---|
committer | Adrián Oliva <adrian.oliva@cimat.mx> | 2023-05-17 10:50:12 -0600 |
commit | f929e5156cb1941beb2f5329e7b9b8fae4c7691b (patch) | |
tree | f588c13de3e31d4eecfc1cbbe15d403fd46f42b2 /src/features/counter/counterSlice.spec.js | |
parent | 17c1d3d2070ee0c060c3e71a9e5868f004b2b034 (diff) | |
download | ToDo-App-FE-f929e5156cb1941beb2f5329e7b9b8fae4c7691b.tar.gz ToDo-App-FE-f929e5156cb1941beb2f5329e7b9b8fae4c7691b.zip |
Modified to be minimal.
Diffstat (limited to 'src/features/counter/counterSlice.spec.js')
-rw-r--r-- | src/features/counter/counterSlice.spec.js | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/features/counter/counterSlice.spec.js b/src/features/counter/counterSlice.spec.js deleted file mode 100644 index 113526b..0000000 --- a/src/features/counter/counterSlice.spec.js +++ /dev/null @@ -1,33 +0,0 @@ -import counterReducer, { - increment, - decrement, - incrementByAmount, -} from "./counterSlice"; - -describe("counter reducer", () => { - const initialState = { - value: 3, - status: "idle", - }; - it("should handle initial state", () => { - expect(counterReducer(undefined, { type: "unknown" })).toEqual({ - value: 0, - status: "idle", - }); - }); - - it("should handle increment", () => { - const actual = counterReducer(initialState, increment()); - expect(actual.value).toEqual(4); - }); - - it("should handle decrement", () => { - const actual = counterReducer(initialState, decrement()); - expect(actual.value).toEqual(2); - }); - - it("should handle incrementByAmount", () => { - const actual = counterReducer(initialState, incrementByAmount(2)); - expect(actual.value).toEqual(5); - }); -}); |