A fork of https://github.com/ueokande/vim-vixen
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
903 B
27 lines
903 B
import { expect } from "chai"; |
|
import actions from '../../src/actions'; |
|
import * as completionActions from '../../src/actions/completion'; |
|
|
|
describe("completion actions", () => { |
|
describe('setItems', () => { |
|
it('create COMPLETION_SET_ITEMS action', () => { |
|
let action = completionActions.setItems([1, 2, 3]); |
|
expect(action.type).to.equal(actions.COMPLETION_SET_ITEMS); |
|
expect(action.groups).to.deep.equal([1, 2, 3]); |
|
}); |
|
}); |
|
|
|
describe('selectNext', () => { |
|
it('create COMPLETION_SELECT_NEXT action', () => { |
|
let action = completionActions.selectNext(); |
|
expect(action.type).to.equal(actions.COMPLETION_SELECT_NEXT); |
|
}); |
|
}); |
|
|
|
describe('selectPrev', () => { |
|
it('create COMPLETION_SELECT_PREV action', () => { |
|
let action = completionActions.selectPrev(); |
|
expect(action.type).to.equal(actions.COMPLETION_SELECT_PREV); |
|
}); |
|
}); |
|
});
|
|
|