mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-16 09:10:33 +03:00
switch to vue cli for build
This commit is contained in:
@@ -1,30 +1,28 @@
|
||||
import Vue from 'vue';
|
||||
import { selectWithProps } from '../helpers';
|
||||
import Vue from "vue";
|
||||
import { selectWithProps } from "../helpers";
|
||||
|
||||
describe('Components API', () => {
|
||||
|
||||
it('swap the Deselect component', () => {
|
||||
const Deselect = Vue.component('Deselect', {
|
||||
render (createElement) {
|
||||
return createElement('button', 'remove');
|
||||
},
|
||||
describe("Components API", () => {
|
||||
it("swap the Deselect component", () => {
|
||||
const Deselect = Vue.component("Deselect", {
|
||||
render(createElement) {
|
||||
return createElement("button", "remove");
|
||||
}
|
||||
});
|
||||
|
||||
const Select = selectWithProps({components: {Deselect}});
|
||||
const Select = selectWithProps({ components: { Deselect } });
|
||||
|
||||
expect(Select.contains(Deselect)).toBeTruthy();
|
||||
});
|
||||
|
||||
it('swap the OpenIndicator component', () => {
|
||||
const OpenIndicator = Vue.component('OpenIndicator', {
|
||||
render (createElement) {
|
||||
return createElement('i', '^');
|
||||
},
|
||||
it("swap the OpenIndicator component", () => {
|
||||
const OpenIndicator = Vue.component("OpenIndicator", {
|
||||
render(createElement) {
|
||||
return createElement("i", "^");
|
||||
}
|
||||
});
|
||||
|
||||
const Select = selectWithProps({components: {OpenIndicator}});
|
||||
const Select = selectWithProps({ components: { OpenIndicator } });
|
||||
|
||||
expect(Select.contains(OpenIndicator)).toBeTruthy();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user