Skip to content

Commit 88291d0

Browse files
author
Jeff
committed
fix failing test
1 parent f83d0db commit 88291d0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/unit/ObjectIndex.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ describe("When index prop is defined", () => {
117117
template: `<div><v-select :index="index" :options="options" v-model="value"></v-select></div>`,
118118
components: { "v-select": VueSelect }
119119
});
120-
const Select = Parent.find(VueSelect);
120+
const Select = Parent.vm.$children[0];
121121

122-
expect(Select.vm.value).toEqual("foo");
123-
expect(Select.vm.mutableValue).toEqual("foo");
122+
expect(Select.value).toEqual("foo");
123+
expect(Select.mutableValue).toEqual("foo");
124124

125-
Select.vm.select({ label: "This is Bar", value: "bar" });
125+
Select.select({ label: "This is Bar", value: "bar" });
126126
expect(Parent.vm.value).toEqual("bar");
127127
});
128128

0 commit comments

Comments
 (0)