Skip to content

Commit

Permalink
refactor(test): avoid failure test
Browse files Browse the repository at this point in the history
  • Loading branch information
chemzqm committed Jan 14, 2022
1 parent 05a1d23 commit 0041701
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/__tests__/list/commandTask.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ describe('Command task', () => {
let list = new DataList(nvim)
list.config.fixKey('<X-a>')
await helper.wait(500)
await nvim.command('redraw')
let msg = await helper.getCmdline()
expect(msg).toMatch('not supported')
})
Expand All @@ -112,8 +113,8 @@ describe('Command task', () => {
disposables.push(manager.registerList(new ErrorTask(nvim)))
await manager.start(['error'])
await helper.wait(500)
await nvim.command('redraw')
let res = await helper.getCmdline()
expect(res).toMatch('NOT_EXISTS ENOENT')
})

it('should create command task', async () => {
Expand Down

0 comments on commit 0041701

Please sign in to comment.