mirror of
https://github.com/directus/directus.git
synced 2026-02-08 23:25:55 -05:00
Interface toggle (#459)
* Add icon prop overrides to checkbox * Fix color example in storybook * Add block style mode to checkbox base componet * Add toggle interface
This commit is contained in:
20
src/interfaces/toggle/toggle.test.ts
Normal file
20
src/interfaces/toggle/toggle.test.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import InterfaceToggle from './toggle.vue';
|
||||
import { createLocalVue, shallowMount } from '@vue/test-utils';
|
||||
import VueCompositionAPI from '@vue/composition-api';
|
||||
import VCheckbox from '@/components/v-checkbox';
|
||||
import VIcon from '@/components/v-icon';
|
||||
|
||||
const localVue = createLocalVue();
|
||||
localVue.use(VueCompositionAPI);
|
||||
localVue.component('v-checkbox', VCheckbox);
|
||||
localVue.component('v-icon', VIcon);
|
||||
|
||||
describe('Interfaces / Toggle', () => {
|
||||
it('Renders a v-checkbox', () => {
|
||||
const component = shallowMount(InterfaceToggle, {
|
||||
localVue,
|
||||
});
|
||||
|
||||
expect(component.find(VCheckbox).exists()).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user