mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
fix failing test
This commit is contained in:
@@ -117,12 +117,12 @@ describe("When index prop is defined", () => {
|
|||||||
template: `<div><v-select :index="index" :options="options" v-model="value"></v-select></div>`,
|
template: `<div><v-select :index="index" :options="options" v-model="value"></v-select></div>`,
|
||||||
components: { "v-select": VueSelect }
|
components: { "v-select": VueSelect }
|
||||||
});
|
});
|
||||||
const Select = Parent.find(VueSelect);
|
const Select = Parent.vm.$children[0];
|
||||||
|
|
||||||
expect(Select.vm.value).toEqual("foo");
|
expect(Select.value).toEqual("foo");
|
||||||
expect(Select.vm.mutableValue).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");
|
expect(Parent.vm.value).toEqual("bar");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user