diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-10 09:20:54 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-10 11:13:05 +0900 |
commit | 3c67cc0a002aded07e88ea25acc881ff080d1ae4 (patch) | |
tree | ed958c552d1b901d6dd104e73c579bb9c523779d /test | |
parent | 7e35d11f659029febd738c83b19ab4b8a8b69642 (diff) |
completion as action/reducer
Diffstat (limited to 'test')
-rw-r--r-- | test/actions/background.test.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/actions/background.test.js b/test/actions/background.test.js new file mode 100644 index 0000000..a3203ee --- /dev/null +++ b/test/actions/background.test.js @@ -0,0 +1,14 @@ +import { expect } from "chai"; +import actions from '../../src/actions'; +import * as backgroundActions from '../../src/actions/background'; + +describe("background actions", () => { + describe("requestCompletions", () => { + it('create BACKGROUND_REQUEST_COMPLETIONS action', () => { + let action = backgroundActions.requestCompletions('buffer hoge fuga'); + expect(action.type).to.equal(actions.BACKGROUND_REQUEST_COMPLETIONS); + expect(action.command).to.equal('buffer'); + expect(action.keywords).to.equal('hoge fuga'); + }); + }); +}); |