Skip to content

Commit 6cb8509

Browse files
authored
test: migrated fix-790.test.js from tap to node:test (#1158)
1 parent 5a9fe88 commit 6cb8509

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/fix-790.js renamed to test/fix-790.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const { test } = require('tap')
3+
const { test } = require('node:test')
44
const Fastify = require('fastify')
55
const GQL = require('..')
66

@@ -37,10 +37,10 @@ test('Subscription type is not treated as a subscription when subscriptions disa
3737

3838
const query = '{ subscription { id } }'
3939
const result = await app.graphql(query)
40-
t.same(result, {
40+
t.assert.deepEqual(result, {
4141
data: {
4242
subscription: {
43-
id: '1'
43+
id: 1
4444
}
4545
}
4646
})
@@ -78,7 +78,7 @@ test('Subscription type is not treated as a subscription by default', async (t)
7878

7979
const query = '{ subscription { id } }'
8080
const result = await app.graphql(query)
81-
t.same(result, {
81+
t.assert.deepEqual(result, {
8282
data: {
8383
subscription: {
8484
id: '1'

0 commit comments

Comments
 (0)