Skip to content

Commit

Permalink
Remove unneeded reference
Browse files Browse the repository at this point in the history
  • Loading branch information
kjellmorten committed May 17, 2021
1 parent e519ac2 commit b380ae4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/subscribe.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,10 @@ test('should unsubscribe from queue', async (t) => {

await t.context.channel.purgeQueue(queueName)
})

test('should do nothing when unsubscribe is attempted without queue name', async (t) => {
const queueName = 'testQueueUnsubscribe2'
const q = await createQueue({ queueName, rabbitmq: rabbitOptions })

await t.notThrowsAsync(q.unsubscribe(null))
})

0 comments on commit b380ae4

Please sign in to comment.