Skip to content

Commit

Permalink
Use Node test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jan 23, 2023
1 parent fbbd4ba commit 0340921
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ jobs:
strategy:
matrix:
node:
- lts/fermium
- lts/gallium
- node
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@
},
"devDependencies": {
"@types/mdast": "^3.0.0",
"@types/tape": "^4.0.0",
"@types/node": "^18.0.0",
"c8": "^7.0.0",
"prettier": "^2.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"tape": "^5.0.0",
"tsd": "^0.25.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
Expand Down
9 changes: 4 additions & 5 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import test from 'tape'
import assert from 'node:assert/strict'
import test from 'node:test'
import {u} from './index.js'

test('u', function (t) {
t.deepEqual(
test('u', function () {
assert.deepEqual(
u('root', [
u('subtree', {id: 1}),
u('subtree', {id: 2}, [
Expand Down Expand Up @@ -32,6 +33,4 @@ test('u', function (t) {
]
}
)

t.end()
})

0 comments on commit 0340921

Please sign in to comment.