File tree Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Expand file tree Collapse file tree 1 file changed +3
-19
lines changed Original file line number Diff line number Diff line change 1
1
import { describe , it , expect } from 'vitest' ;
2
2
import { render } from '@testing-library/svelte' ;
3
3
import DotTest from './dot.test.svelte' ;
4
- import { getPathDims , getTranslate } from './utils' ;
5
- import {
6
- symbol ,
7
- symbolAsterisk ,
8
- symbolDiamond2 ,
9
- symbolPlus ,
10
- symbolSquare2 ,
11
- symbolTriangle2 ,
12
- symbolX as symbolTimes ,
13
- symbolCircle ,
14
- symbolCross ,
15
- symbolDiamond ,
16
- symbolSquare ,
17
- symbolStar ,
18
- symbolTriangle ,
19
- symbolWye ,
20
- type SymbolType
21
- } from 'd3-shape' ;
4
+ import { getTranslate } from './utils' ;
5
+ import { symbol , symbolCircle } from 'd3-shape' ;
22
6
23
7
const testData = [
24
8
{ x : 10 , y : 20 , value : 5 } ,
@@ -93,7 +77,7 @@ describe('Dot mark', () => {
93
77
}
94
78
} ) ;
95
79
96
- const dots = container . querySelectorAll ( 'g.dot > path' ) ;
80
+ const dots = container . querySelectorAll ( 'g.dot > path' ) as NodeListOf < SVGPathElement > ;
97
81
expect ( dots . length ) . toBe ( 2 ) ;
98
82
expect ( dots [ 0 ] . style . fill ) . toBe ( 'blue' ) ;
99
83
expect ( dots [ 1 ] . style . fill ) . toBe ( 'red' ) ;
You can’t perform that action at this time.
0 commit comments