Skip to content

Commit

Permalink
use tape (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
gurgunday authored Jun 27, 2024
1 parent 986abce commit 0655453
Show file tree
Hide file tree
Showing 12 changed files with 552 additions and 589 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

jobs:
test:
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v4.2.0
uses: fastify/workflows/.github/workflows/plugins-ci.yml@v4.2.1
with:
license-check: true
node-versions: '["16", "18", "20"]'
node-versions: '["16", "18", "20", "22"]'
2 changes: 1 addition & 1 deletion .github/workflows/package-manager-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ on:

jobs:
test:
uses: fastify/workflows/.github/workflows/plugins-ci-package-manager.yml@v4.1.0
uses: fastify/workflows/.github/workflows/plugins-ci-package-manager.yml@v4.2.1
3 changes: 0 additions & 3 deletions .taprc

This file was deleted.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"lint:fix": "standard --fix",
"test": "npm run lint && npm run test:unit && npm run test:typescript",
"test:ci": "npm run lint && npm run test:unit -- --coverage-report=lcovonly && npm run test:typescript",
"test:unit": "tap",
"test:unit": "npx tape test/**/*.js",
"test:unit:dev": "npm run test:unit -- --coverage-report=html",
"test:typescript": "tsd"
},
Expand All @@ -32,7 +32,7 @@
"coveralls": "^3.1.1",
"snazzy": "^9.0.0",
"standard": "^17.1.0",
"tap": "^18.7.2",
"tape": "^5.8.1",
"tsd": "^0.31.0",
"uri-js": "^4.4.1"
}
Expand Down
2 changes: 1 addition & 1 deletion test/ajv.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const fastUri = require('../')
const ajv = new AJV({
uriResolver: fastUri // comment this line to see it works with uri-js
})
const { test } = require('tap')
const test = require('tape')

test('ajv', t => {
t.plan(1)
Expand Down
3 changes: 1 addition & 2 deletions test/compatibility.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict'

const tap = require('tap')
const test = tap.test
const test = require('tape')
const fastifyURI = require('../')
const urijs = require('uri-js')

Expand Down
3 changes: 1 addition & 2 deletions test/equal.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict'

const tap = require('tap')
const test = tap.test
const test = require('tape')
const URI = require('../')

const fn = URI.equal
Expand Down
3 changes: 1 addition & 2 deletions test/parse.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict'

const tap = require('tap')
const test = tap.test
const test = require('tape')
const URI = require('../')

test('URI parse', (t) => {
Expand Down
3 changes: 1 addition & 2 deletions test/resolve.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict'

const tap = require('tap')
const test = tap.test
const test = require('tape')
const URI = require('../')

test('URI Resolving', (t) => {
Expand Down
3 changes: 1 addition & 2 deletions test/serialize.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict'

const tap = require('tap')
const test = tap.test
const test = require('tape')
const URI = require('../')

test('URI Serialize', (t) => {
Expand Down
Loading

0 comments on commit 0655453

Please sign in to comment.