File tree Expand file tree Collapse file tree 3 files changed +11
-13
lines changed
Expand file tree Collapse file tree 3 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 1717 strategy :
1818 matrix :
1919 node :
20- - lts/fermium
20+ - lts/hydrogen
2121 - node
Original file line number Diff line number Diff line change 3636 "hast-util-is-element" : " ^2.0.0"
3737 },
3838 "devDependencies" : {
39- "@types/tape " : " ^4 .0.0" ,
39+ "@types/node " : " ^18 .0.0" ,
4040 "c8" : " ^7.0.0" ,
4141 "prettier" : " ^2.0.0" ,
4242 "remark-cli" : " ^11.0.0" ,
4343 "remark-preset-wooorm" : " ^9.0.0" ,
44- "tape" : " ^5.0.0" ,
4544 "type-coverage" : " ^2.0.0" ,
4645 "typescript" : " ^4.0.0" ,
4746 "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'
23import { sectioning } from './index.js'
34
4- test ( 'sectioning' , ( t ) => {
5- t . equal ( sectioning ( ) , false , 'should return `false` without node' )
5+ test ( 'sectioning' , ( ) => {
6+ assert . equal ( sectioning ( ) , false , 'should return `false` without node' )
67
7- t . equal ( sectioning ( null ) , false , 'should return `false` with `null`' )
8+ assert . equal ( sectioning ( null ) , false , 'should return `false` with `null`' )
89
9- t . equal (
10+ assert . equal (
1011 sectioning ( { type : 'text' } ) ,
1112 false ,
1213 'should return `false` when without `element`'
1314 )
1415
15- t . equal (
16+ assert . equal (
1617 sectioning ( { type : 'element' } ) ,
1718 false ,
1819 'should return `false` when with invalid `element`'
1920 )
2021
21- t . equal (
22+ assert . equal (
2223 sectioning ( {
2324 type : 'element' ,
2425 tagName : 'a' ,
@@ -29,7 +30,7 @@ test('sectioning', (t) => {
2930 'should return `false` when without not sectioning'
3031 )
3132
32- t . equal (
33+ assert . equal (
3334 sectioning ( {
3435 type : 'element' ,
3536 tagName : 'article' ,
@@ -44,6 +45,4 @@ test('sectioning', (t) => {
4445 true ,
4546 'should return `true` when with sectioning'
4647 )
47-
48- t . end ( )
4948} )
You can’t perform that action at this time.
0 commit comments