File tree 3 files changed +11
-13
lines changed
3 files changed +11
-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 36
36
"hast-util-is-element" : " ^2.0.0"
37
37
},
38
38
"devDependencies" : {
39
- "@types/tape " : " ^4 .0.0" ,
39
+ "@types/node " : " ^18 .0.0" ,
40
40
"c8" : " ^7.0.0" ,
41
41
"prettier" : " ^2.0.0" ,
42
42
"remark-cli" : " ^11.0.0" ,
43
43
"remark-preset-wooorm" : " ^9.0.0" ,
44
- "tape" : " ^5.0.0" ,
45
44
"type-coverage" : " ^2.0.0" ,
46
45
"typescript" : " ^4.0.0" ,
47
46
"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 { heading } from './index.js'
3
4
4
- test ( 'heading' , ( t ) => {
5
- t . equal ( heading ( ) , false , 'should return `false` without node' )
5
+ test ( 'heading' , ( ) => {
6
+ assert . equal ( heading ( ) , false , 'should return `false` without node' )
6
7
7
- t . equal ( heading ( null ) , false , 'should return `false` with `null`' )
8
+ assert . equal ( heading ( null ) , false , 'should return `false` with `null`' )
8
9
9
- t . equal (
10
+ assert . equal (
10
11
heading ( { type : 'text' } ) ,
11
12
false ,
12
13
'should return `false` when without `element`'
13
14
)
14
15
15
- t . equal (
16
+ assert . equal (
16
17
heading ( { type : 'element' } ) ,
17
18
false ,
18
19
'should return `false` when with invalid `element`'
19
20
)
20
21
21
- t . equal (
22
+ assert . equal (
22
23
heading ( {
23
24
type : 'element' ,
24
25
tagName : 'a' ,
@@ -29,7 +30,7 @@ test('heading', (t) => {
29
30
'should return `false` when without not heading'
30
31
)
31
32
32
- t . equal (
33
+ assert . equal (
33
34
heading ( {
34
35
type : 'element' ,
35
36
tagName : 'h1' ,
@@ -38,6 +39,4 @@ test('heading', (t) => {
38
39
true ,
39
40
'should return `true` when with heading'
40
41
)
41
-
42
- t . end ( )
43
42
} )
You can’t perform that action at this time.
0 commit comments