Files
n8n-enterprise-unlocked/packages/design-system/src/components/N8nSelect/__tests__/Select.spec.ts
कारतोफ्फेलस्क्रिप्ट™ 13659d036f ci: Ensure that eslint runs on all frontend code (no-changelog) (#4602)
* ensure that eslint runs on all frontend code

* remove tslint from `design-system`

* enable prettier and eslint-prettier for `design-system`

* Delete tslint.json

* use a single editorconfig for the repo

* enable prettier for all code in `design-system`

* more linting fixes on design-system

* ignore coverage for git and prettier

* lintfix on editor-ui
2022-11-15 18:20:54 +01:00

24 lines
570 B
TypeScript

import { render } from '@testing-library/vue';
import N8nSelect from '../Select.vue';
import N8nOption from '../../N8nOption/Option.vue';
describe('components', () => {
describe('N8nSelect', () => {
it('should render correctly', () => {
const wrapper = render(N8nSelect, {
components: {
N8nOption,
},
slots: {
default: [
'<n8n-option value="1">1</n8n-option>',
'<n8n-option value="2">2</n8n-option>',
'<n8n-option value="3">3</n8n-option>',
],
},
});
expect(wrapper.html()).toMatchSnapshot();
});
});
});