Skip to content

Commit 9cd4d45

Browse files
committed
fix: update test
1 parent c398365 commit 9cd4d45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/subscription.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,7 +2458,7 @@ test('subscription passes context to its loaders', t => {
24582458
const loaders = {
24592459
Notification: {
24602460
message: async (queries, context) => {
2461-
t.ok(context, 'context is not missing')
2461+
t.assert.ok(context, 'context is not missing')
24622462
const { username } = context
24632463
return queries.map(({ obj }) => `${obj.message} ${username}`)
24642464
}
@@ -2671,7 +2671,7 @@ test('request and reply objects in subscription context', t => {
26712671
Subscription: {
26722672
notificationAdded: {
26732673
subscribe: (root, args, ctx) => {
2674-
t.ok(ctx.__currentQuery.includes('notificationAdded {'))
2674+
t.assert.ok(ctx.__currentQuery.includes('notificationAdded {'))
26752675
t.assert.strictEqual(ctx.reply.request.foo(), 'bar')
26762676
t.assert.strictEqual(ctx.reply.request.headers.authorization, 'Bearer foobar')
26772677
return ctx.pubsub.subscribe('NOTIFICATION_ADDED')

0 commit comments

Comments
 (0)