File tree 3 files changed +15
-13
lines changed
3 files changed +15
-13
lines changed Original file line number Diff line number Diff line change 17
17
strategy :
18
18
matrix :
19
19
node :
20
- - lts/fermium
20
+ - lts/hydrogen
21
21
- node
Original file line number Diff line number Diff line change 37
37
"hast-util-is-element" : " ^2.0.0"
38
38
},
39
39
"devDependencies" : {
40
- "@types/tape " : " ^4 .0.0" ,
40
+ "@types/node " : " ^18 .0.0" ,
41
41
"c8" : " ^7.0.0" ,
42
42
"prettier" : " ^2.0.0" ,
43
43
"remark-cli" : " ^11.0.0" ,
44
44
"remark-preset-wooorm" : " ^9.0.0" ,
45
- "tape" : " ^5.0.0" ,
46
45
"type-coverage" : " ^2.0.0" ,
47
46
"typescript" : " ^4.0.0" ,
48
47
"xo" : " ^0.53.0"
Original file line number Diff line number Diff line change 1
- import test from 'tape'
1
+ import assert from 'node:assert/strict'
2
+ import test from 'node:test'
2
3
import { scriptSupporting } from './index.js'
3
4
4
- test ( 'scriptSupporting' , ( t ) => {
5
- t . equal ( scriptSupporting ( ) , false , 'should return `false` without node' )
5
+ test ( 'scriptSupporting' , ( ) => {
6
+ assert . equal ( scriptSupporting ( ) , false , 'should return `false` without node' )
6
7
7
- t . equal ( scriptSupporting ( null ) , false , 'should return `false` with `null`' )
8
+ assert . equal (
9
+ scriptSupporting ( null ) ,
10
+ false ,
11
+ 'should return `false` with `null`'
12
+ )
8
13
9
- t . equal (
14
+ assert . equal (
10
15
scriptSupporting ( { type : 'text' } ) ,
11
16
false ,
12
17
'should return `false` when without `element`'
13
18
)
14
19
15
- t . equal (
20
+ assert . equal (
16
21
scriptSupporting ( { type : 'element' } ) ,
17
22
false ,
18
23
'should return `false` when with invalid `element`'
19
24
)
20
25
21
- t . equal (
26
+ assert . equal (
22
27
scriptSupporting ( {
23
28
type : 'element' ,
24
29
tagName : 'a' ,
@@ -29,7 +34,7 @@ test('scriptSupporting', (t) => {
29
34
'should return `false` when without not script-supporting'
30
35
)
31
36
32
- t . equal (
37
+ assert . equal (
33
38
scriptSupporting ( {
34
39
type : 'element' ,
35
40
tagName : 'template' ,
@@ -38,6 +43,4 @@ test('scriptSupporting', (t) => {
38
43
true ,
39
44
'should return `true` when with script-supporting'
40
45
)
41
-
42
- t . end ( )
43
46
} )
You can’t perform that action at this time.
0 commit comments