diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2022-03-14 13:24:01 +0000 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2022-05-05 07:27:44 +0000 |
commit | bc890c55bfbd6d1aa4ece5b0ef96a9ab6d358ad7 (patch) | |
tree | 4b268cfb3040ee9b32c7d22d5e8fd47fac3d46bb /test/console/completion/reducer.test.ts | |
parent | 823bad63384de90c11653f0afa253cc5d0e19239 (diff) |
Get completion types on component initialization
Diffstat (limited to 'test/console/completion/reducer.test.ts')
-rw-r--r-- | test/console/completion/reducer.test.ts | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/console/completion/reducer.test.ts b/test/console/completion/reducer.test.ts index 43b9807..865d066 100644 --- a/test/console/completion/reducer.test.ts +++ b/test/console/completion/reducer.test.ts @@ -3,29 +3,13 @@ import reducer, { State, } from "../../../src/console/completion/reducer"; import { - initCompletion, selectNext, selectPrev, setCompletions, setCompletionSource, } from "../../../src/console/completion/actions"; -import CompletionType from "../../../src/shared/CompletionType"; describe("completion reducer", () => { - describe("initCompletion", () => { - it("initializes completions", () => { - const nextState = reducer( - defaultState, - initCompletion([CompletionType.Bookmarks, CompletionType.History]) - ); - - expect(nextState.completionTypes).toEqual([ - CompletionType.Bookmarks, - CompletionType.History, - ]); - }); - }); - describe("setCompletionSource", () => { it("sets a completion source", () => { const nextState = reducer(defaultState, setCompletionSource("open ")); |