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

fix failing test

This commit is contained in:
Jeff
2019-02-10 17:37:23 -08:00
parent f83d0db077
commit 88291d0166
+4 -4
View File
@@ -117,12 +117,12 @@ describe("When index prop is defined", () => {
template: `<div><v-select :index="index" :options="options" v-model="value"></v-select></div>`,
components: { "v-select": VueSelect }
});
const Select = Parent.find(VueSelect);
const Select = Parent.vm.$children[0];
expect(Select.vm.value).toEqual("foo");
expect(Select.vm.mutableValue).toEqual("foo");
expect(Select.value).toEqual("foo");
expect(Select.mutableValue).toEqual("foo");
Select.vm.select({ label: "This is Bar", value: "bar" });
Select.select({ label: "This is Bar", value: "bar" });
expect(Parent.vm.value).toEqual("bar");
});