mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-24 12:05:16 +00:00
Migrate ValuePair to vitest
This commit is contained in:
parent
ca50318d09
commit
64eea047ad
|
@ -1,12 +0,0 @@
|
||||||
import ValuePair from '@/components/general/ValuePair.vue';
|
|
||||||
|
|
||||||
describe('ValuePair.vue', () => {
|
|
||||||
it('Renders a message', () => {
|
|
||||||
const msg = 'Test description';
|
|
||||||
// https://github.com/cypress-io/cypress/issues/26628
|
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
||||||
// @ts-expect-error
|
|
||||||
cy.mount(ValuePair, { props: { description: msg } });
|
|
||||||
cy.get('label').contains(msg);
|
|
||||||
});
|
|
||||||
});
|
|
11
tests/component/VaulePair.spec.ts
Normal file
11
tests/component/VaulePair.spec.ts
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
import ValuePair from '@/components/general/ValuePair.vue';
|
||||||
|
import { mount } from '@vue/test-utils';
|
||||||
|
import { describe, expect, it } from 'vitest';
|
||||||
|
|
||||||
|
describe('ValuePair.vue', () => {
|
||||||
|
it('Renders a message', async () => {
|
||||||
|
const msg = 'Test description';
|
||||||
|
const wrapper = mount(ValuePair, { props: { description: msg } });
|
||||||
|
expect(wrapper.find('label').text()).toContain(msg);
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user