Skip to content

Commit ab23452

Browse files
committed
chore: move to node test runner
1 parent 7b6f917 commit ab23452

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/index.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,7 +1533,7 @@ test('options.callbackUriParams should be an object', t => {
15331533
.ready(), undefined, 'options.callbackUriParams should be a object')
15341534
})
15351535

1536-
test('options.callbackUriParams', t => {
1536+
test('options.callbackUriParams', (t, end) => {
15371537
const fastify = createFastify({ logger: { level: 'silent' } })
15381538

15391539
fastify.register(fastifyOauth2, {
@@ -1650,7 +1650,7 @@ test('options.tokenRequestParams', async t => {
16501650
githubScope.done()
16511651
})
16521652

1653-
test('generateAuthorizationUri redirect with request object', t => {
1653+
test('generateAuthorizationUri redirect with request object', (t, end) => {
16541654
const fastify = createFastify()
16551655

16561656
fastify.register(fastifyOauth2, {
@@ -1691,7 +1691,7 @@ test('generateAuthorizationUri redirect with request object', t => {
16911691
})
16921692
})
16931693

1694-
test('generateAuthorizationUri redirect with request object and callback', t => {
1694+
test('generateAuthorizationUri redirect with request object and callback', (t, end) => {
16951695
const fastify = createFastify()
16961696

16971697
fastify.register(fastifyOauth2, {
@@ -1959,7 +1959,7 @@ test('not providing options.discovery.issuer and credentials.auth', t => {
19591959
.ready(), undefined, 'options.discovery.issuer or credentials.auth have to be given')
19601960
})
19611961

1962-
test('options.schema', t => {
1962+
test('options.schema', (t, end) => {
19631963
const fastify = createFastify({ logger: { level: 'silent' }, exposeHeadRoutes: false })
19641964

19651965
fastify.addHook('onRoute', function (routeOptions) {

0 commit comments

Comments
 (0)