Skip to content

Commit 8c00aa4

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/Selecting.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,12 @@ describe("VS - Selecting Values", () => {
206206
expect(Select.emitted("input")[0]).toEqual(["bar"]);
207207
});
208208

209-
it("should run change when multiple is true and the value changes", () => {
209+
it("will trigger the input event when the selection changes and multiple is true", () => {
210210
const Select = shallowMount(VueSelect, {
211211
propsData: { multiple: true, value: ["foo"], options: ["foo", "bar"] }
212212
});
213213
Select.vm.select("bar");
214-
expect(Select.emitted("input")[0]).toEqual([["bar"]]);
214+
expect(Select.emitted("input")[0]).toEqual([["foo", "bar"]]);
215215
});
216216
});
217217
});

0 commit comments

Comments
 (0)