Skip to content

Commit 608e7e9

Browse files
committed
Use Node test runner
1 parent aa71d1e commit 608e7e9

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ jobs:
77
name: ${{matrix.node}}
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
11-
- uses: dcodeIO/setup-node-nvm@master
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
1212
with:
1313
node-version: ${{matrix.node}}
1414
- run: npm install
@@ -17,5 +17,5 @@ jobs:
1717
strategy:
1818
matrix:
1919
node:
20-
- lts/erbium
20+
- lts/hydrogen
2121
- node

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"./pt-pt.js": "./pt-pt.js"
6060
},
6161
"devDependencies": {
62+
"@types/node": "^18.0.0",
6263
"@types/tape": "^4.0.0",
6364
"c8": "^7.0.0",
6465
"cuss": "^2.0.0",

test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import test from 'tape'
1+
import assert from 'node:assert'
2+
import test from 'node:test'
23
import {profanities} from './index.js'
34

4-
test('profanities', (t) => {
5-
t.equal(typeof profanities, 'object', 'should be an array #1')
6-
t.equal(Array.isArray(profanities), true, 'should be an array #2')
7-
t.notEqual(profanities.indexOf('barf'), -1, 'should contain words')
8-
t.end()
5+
test('profanities', () => {
6+
assert.equal(typeof profanities, 'object', 'should be an array #1')
7+
assert.equal(Array.isArray(profanities), true, 'should be an array #2')
8+
assert.notEqual(profanities.indexOf('barf'), -1, 'should contain words')
99
})

0 commit comments

Comments
 (0)