2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00

WIP potential spec for #956

This commit is contained in:
Jeff
2019-10-25 13:59:23 -07:00
parent ceb42b4950
commit 7c66f75579
3 changed files with 33 additions and 27 deletions
+4 -4
View File
@@ -4,7 +4,7 @@ describe("Selectable prop", () => {
it("should select selectable option if clicked", () => {
const Select = selectWithProps({
options: ["one", "two", "three"],
selectable: (option) => option == "one"
selectable: (option) => option === "one"
});
Select.vm.$data.open = true;
@@ -16,7 +16,7 @@ describe("Selectable prop", () => {
it("should not select not selectable option if clicked", () => {
const Select = selectWithProps({
options: ["one", "two", "three"],
selectable: (option) => option == "one"
selectable: (option) => option === "one"
});
Select.vm.$data.open = true;
@@ -33,7 +33,7 @@ describe("Selectable prop", () => {
Select.vm.typeAheadPointer = 1;
Select.find({ ref: "search" }).trigger("keyup.down");
Select.find({ ref: "search" }).trigger("keydown.down");
expect(Select.vm.typeAheadPointer).toEqual(2);
})
@@ -46,7 +46,7 @@ describe("Selectable prop", () => {
Select.vm.typeAheadPointer = 2;
Select.find({ ref: "search" }).trigger("keyup.up");
Select.find({ ref: "search" }).trigger("keydown.up");
expect(Select.vm.typeAheadPointer).toEqual(0);
})
+1 -1
View File
@@ -49,7 +49,7 @@ describe("VS - Selecting Values", () => {
expect(Select.selectedValue).toEqual(Select.value);
});
it("can select an option on tab", () => {
fit("can select an option on tab", () => {
const Select = shallowMount(VueSelect, {
propsData: {
selectOnTab: true