2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-22 10:30:34 +03:00

eslint fixes

This commit is contained in:
Jeff Sagal
2021-08-01 12:32:22 -07:00
parent 8588cac3d7
commit 3bbc309422
87 changed files with 3236 additions and 2864 deletions
+17 -17
View File
@@ -1,30 +1,30 @@
import { searchSubmit, selectTag, selectWithProps } from "../helpers";
import { searchSubmit, selectTag, selectWithProps } from '../helpers'
describe("CreateOption When Tagging Is Enabled", () => {
it("can select the current search text as a string", async () => {
describe('CreateOption When Tagging Is Enabled', () => {
it('can select the current search text as a string', async () => {
const Select = selectWithProps({
taggable: true,
multiple: true,
options: ["one", "two"],
createOption: option => "four"
});
options: ['one', 'two'],
createOption: (option) => 'four',
})
await selectTag(Select, "three");
expect(Select.vm.selectedValue).toEqual(["four"]);
});
await selectTag(Select, 'three')
expect(Select.vm.selectedValue).toEqual(['four'])
})
it("can select the current search text as an object", async () => {
it('can select the current search text as an object', async () => {
const Select = selectWithProps({
taggable: true,
multiple: false,
value: null,
options: [],
label: "name",
createOption: title => ({ name: title })
});
label: 'name',
createOption: (title) => ({ name: title }),
})
await selectTag(Select, "two");
await selectTag(Select, 'two')
expect(Select.emitted("input")[0]).toEqual([{ name: "two" }]);
});
});
expect(Select.emitted('input')[0]).toEqual([{ name: 'two' }])
})
})