diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-03-27 07:23:17 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2020-03-27 20:47:35 +0900 |
commit | a8d78f1286fb3fe456a786b2c0e534d212835560 (patch) | |
tree | d42a27548a7f3ad8b71336109dc5b48f95ec554f /test/console | |
parent | b2a37b8fc3e273dd71e1e3558c58be8002aa3789 (diff) |
Separate repository's interface and its implementation
Diffstat (limited to 'test/console')
-rw-r--r-- | test/console/actions/console.test.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/test/console/actions/console.test.ts b/test/console/actions/console.test.ts index 583c878..e6567b2 100644 --- a/test/console/actions/console.test.ts +++ b/test/console/actions/console.test.ts @@ -1,5 +1,6 @@ -import * as actions from 'console/actions'; -import * as consoleActions from 'console/actions/console'; +import * as actions from '../../../src/console/actions'; +import * as consoleActions from '../../../src/console/actions/console'; +import { expect } from 'chai'; describe("console actions", () => { describe('hide', () => { @@ -9,8 +10,8 @@ describe("console actions", () => { }); }); describe("showCommand", () => { - it('create CONSOLE_SHOW_COMMAND action', () => { - const action = consoleActions.showCommand('hello'); + it('create CONSOLE_SHOW_COMMAND action', async () => { + const action = await consoleActions.showCommand('hello'); expect(action.type).to.equal(actions.CONSOLE_SHOW_COMMAND); expect(action.text).to.equal('hello'); }); |