Skip to content

Commit e8f0d44

Browse files
committed
test: add arror test case.
1 parent 947db66 commit e8f0d44

File tree

4 files changed

+49
-53
lines changed

4 files changed

+49
-53
lines changed

core/src/arrow/TriangleArrow.test.tsx

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import React from 'react';
2+
import renderer from 'react-test-renderer';
3+
import { TriangleArrow } from './TriangleArrow';
4+
5+
it('renders <TriangleArrow /> test case', () => {
6+
const component = renderer.create(<TriangleArrow />);
7+
let tree = component.toJSON();
8+
expect(tree).toHaveProperty('type');
9+
expect(tree).toHaveProperty('props');
10+
expect(tree).toHaveProperty('children');
11+
expect(tree).toHaveProperty('type', 'svg');
12+
expect(tree).toHaveProperty('props', {
13+
viewBox: '0 0 24 24',
14+
fill: 'var(--w-rjv-arrow-color, currentColor)',
15+
style: {
16+
cursor: 'pointer',
17+
height: '1em',
18+
width: '1em',
19+
display: 'flex',
20+
userSelect: 'none',
21+
},
22+
});
23+
});
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import React from 'react';
2+
import renderer from 'react-test-renderer';
3+
import { TriangleSolidArrow } from './TriangleSolidArrow';
4+
5+
it('renders <TriangleSolidArrow /> test case', () => {
6+
const component = renderer.create(<TriangleSolidArrow />);
7+
let tree = component.toJSON();
8+
expect(tree).toHaveProperty('type');
9+
expect(tree).toHaveProperty('props');
10+
expect(tree).toHaveProperty('children');
11+
expect(tree).toHaveProperty('type', 'svg');
12+
expect(tree).toHaveProperty('props', {
13+
viewBox: '0 0 30 30',
14+
fill: 'var(--w-rjv-arrow-color, currentColor)',
15+
height: '1em',
16+
width: '1em',
17+
style: {
18+
cursor: 'pointer',
19+
height: '1em',
20+
width: '1em',
21+
display: 'flex',
22+
userSelect: 'none',
23+
},
24+
});
25+
});

core/src/comps/Ellipsis.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { useStore } from '../store';
2-
import { useSectionStore, type SectionElementProps } from '../store/Section';
3-
import { type TagType } from '../store/Types';
1+
import { useSectionStore } from '../store/Section';
42

53
export interface CountInfoProps<T extends object> {
64
value?: T;

core/src/type.ts

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

0 commit comments

Comments
 (0)