Skip to content

Commit 37c9508

Browse files
committed
chore: remove invalid tests
1 parent cdf981b commit 37c9508

File tree

2 files changed

+3
-41
lines changed

2 files changed

+3
-41
lines changed

core/src/components/checkbox/test/checkbox.spec.tsx

Lines changed: 0 additions & 21 deletions
This file was deleted.

core/src/components/radio/test/radio.spec.tsx renamed to core/src/components/radio/test/radio.spec.ts

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
import { h } from '@stencil/core';
2-
import { newSpecPage } from '@stencil/core/testing';
3-
1+
import { Radio } from '../radio.tsx';
42
import { RadioGroup } from '../../radio-group/radio-group.tsx';
5-
import { Radio } from '../radio';
3+
import { newSpecPage } from '@stencil/core/testing';
64

75
describe('ion-radio', () => {
86
it('should set a default value', async () => {
@@ -32,19 +30,4 @@ describe('ion-radio', () => {
3230

3331
expect(radio.classList.contains('radio-checked')).toBe(true);
3432
});
35-
36-
it('click event is triggered once', async () => {
37-
const mockOnClick = jest.fn();
38-
39-
const page = await newSpecPage({
40-
components: [Radio],
41-
template: () => <ion-radio onClick={mockOnClick}>Radio</ion-radio>,
42-
});
43-
44-
const radio = page.body.querySelector('ion-radio');
45-
46-
await radio.click();
47-
48-
expect(mockOnClick).toHaveBeenCalledTimes(1);
49-
});
50-
});
33+
});

0 commit comments

Comments
 (0)