Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina committed Jul 15, 2024
1 parent 717a84b commit b8a8d18
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/lib/thenify.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const { test, mock } = require('tap')
const { test, mockRequire } = require('tap')
const { kThenifyDoNotWrap } = require('../../lib/symbols')

test('thenify', (t) => {
Expand All @@ -9,7 +9,7 @@ test('thenify', (t) => {
t.test('return undefined if booted', (t) => {
t.plan(2)

const { thenify } = mock('../../lib/thenify', {
const { thenify } = mockRequire('../../lib/thenify', {
'../../lib/debug': {
debug: (message) => { t.equal(message, 'thenify returning undefined because we are already booted') }
}
Expand All @@ -33,7 +33,7 @@ test('thenify', (t) => {
t.test('return PromiseConstructorLike if kThenifyDoNotWrap is false', (t) => {
t.plan(3)

const { thenify } = mock('../../lib/thenify', {
const { thenify } = mockRequire('../../lib/thenify', {
'../../lib/debug': {
debug: (message) => { t.equal(message, 'thenify') }
}
Expand All @@ -49,7 +49,7 @@ test('thenify', (t) => {
t.test('return PromiseConstructorLike', (t) => {
t.plan(3)

const { thenify } = mock('../../lib/thenify', {
const { thenify } = mockRequire('../../lib/thenify', {
'../../lib/debug': {
debug: (message) => { t.equal(message, 'thenify') }
}
Expand Down

0 comments on commit b8a8d18

Please sign in to comment.