File tree Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Expand file tree Collapse file tree 3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change
1
+ export interface TestCase {
2
+ name : string ;
3
+ data : string ;
4
+ }
5
+
6
+ declare const TestCases : {
7
+ html : TestCase [ ] ;
8
+ svg : TestCase [ ] ;
9
+ } ;
10
+
11
+ export default TestCases ;
Original file line number Diff line number Diff line change
1
+ import type { TestCase } from '../cases' ;
2
+
3
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4
+ type Parser = any ;
5
+
6
+ export function runTests (
7
+ assert : Chai . AssertStatic ,
8
+ actualParser : Parser ,
9
+ expectedParser : Parser ,
10
+ testCases : TestCase [ ] ,
11
+ ) : void ;
12
+
13
+ export function testCaseSensitiveTags (
14
+ assert : Chai . AssertStatic ,
15
+ parser : Parser ,
16
+ ) : void ;
17
+
18
+ export function throwErrors (
19
+ assert : Chai . AssertStatic ,
20
+ expectedParser : Parser ,
21
+ ) : void ;
Original file line number Diff line number Diff line change @@ -4,9 +4,7 @@ import * as htmlparser from 'htmlparser2';
4
4
import jsdomify from 'jsdomify' ;
5
5
6
6
import serverParser from '../../src' ;
7
- // @ts -ignore
8
7
import cases from '../cases' ;
9
- // @ts -ignore
10
8
import { runTests , testCaseSensitiveTags , throwErrors } from '../helpers' ;
11
9
12
10
describe ( 'server parser' , ( ) => {
You can’t perform that action at this time.
0 commit comments