@@ -24,7 +24,10 @@ for (const [detectName, detect] of Object.entries(pageDetect)) {
24
24
}
25
25
26
26
test ( detectName + ' has tests' , t => {
27
- t . true ( Array . isArray ( validURLs ) , `The function \`${ detectName } \` doesn’t have any tests. Set them via \`collect.set()\`` ) ;
27
+ t . true (
28
+ Array . isArray ( validURLs ) ,
29
+ `The function \`${ detectName } \` doesn’t have any tests. Set them via \`collect.set()\`` ,
30
+ ) ;
28
31
} ) ;
29
32
30
33
if ( ! Array . isArray ( validURLs ) ) {
@@ -33,13 +36,16 @@ for (const [detectName, detect] of Object.entries(pageDetect)) {
33
36
34
37
for ( const url of validURLs ) {
35
38
test ( `${ detectName } ${ url . replace ( 'https://github.com' , '' ) } ` , t => {
36
- t . true ( detect ( new URL ( url ) ) , stripIndent ( `
39
+ t . true (
40
+ detect ( new URL ( url ) ) ,
41
+ stripIndent ( `
37
42
Is this URL \`${ detectName } \`?
38
43
${ url . replace ( 'https://github.com' , '' ) }
39
44
40
45
• Yes? The \`${ detectName } \` test is wrong and should be fixed.
41
46
• No? Remove it from its \`collect.set()\` array.
42
- ` ) ) ;
47
+ ` ) ,
48
+ ) ;
43
49
} ) ;
44
50
}
45
51
@@ -51,13 +57,16 @@ for (const [detectName, detect] of Object.entries(pageDetect)) {
51
57
for ( const url of allUrls ) {
52
58
if ( ! validURLs . includes ( url ) ) {
53
59
test ( `${ detectName } NO ${ url } ` , t => {
54
- t . false ( detect ( new URL ( url ) ) , stripIndent ( `
60
+ t . false (
61
+ detect ( new URL ( url ) ) ,
62
+ stripIndent ( `
55
63
Is this URL \`${ detectName } \`?
56
64
${ url . replace ( 'https://github.com' , '' ) }
57
65
58
66
• Yes? Add it to the \`collect.set()\` array.
59
67
• No? The \`${ detectName } \` test is wrong and should be fixed.
60
- ` ) ) ;
68
+ ` ) ,
69
+ ) ;
61
70
} ) ;
62
71
}
63
72
}
0 commit comments