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:40:02 -08:00
parent 88291d0166
commit 8c00aa4e0e
+2 -2
View File
@@ -206,12 +206,12 @@ describe("VS - Selecting Values", () => {
expect(Select.emitted("input")[0]).toEqual(["bar"]);
});
it("should run change when multiple is true and the value changes", () => {
it("will trigger the input event when the selection changes and multiple is true", () => {
const Select = shallowMount(VueSelect, {
propsData: { multiple: true, value: ["foo"], options: ["foo", "bar"] }
});
Select.vm.select("bar");
expect(Select.emitted("input")[0]).toEqual([["bar"]]);
expect(Select.emitted("input")[0]).toEqual([["foo", "bar"]]);
});
});
});