Skip to content

Commit bb8b601

Browse files
committed
formatting
1 parent 384af1b commit bb8b601

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

src/tests/dot.test.ts

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,8 @@
11
import { describe, it, expect } from 'vitest';
22
import { render } from '@testing-library/svelte';
33
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';
226

237
const testData = [
248
{ x: 10, y: 20, value: 5 },
@@ -93,7 +77,7 @@ describe('Dot mark', () => {
9377
}
9478
});
9579

96-
const dots = container.querySelectorAll('g.dot > path');
80+
const dots = container.querySelectorAll('g.dot > path') as NodeListOf<SVGPathElement>;
9781
expect(dots.length).toBe(2);
9882
expect(dots[0].style.fill).toBe('blue');
9983
expect(dots[1].style.fill).toBe('red');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy