Skip to content

Commit

Permalink
test(start): fix mock
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Oct 28, 2023
1 parent 3073723 commit 55ffdae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/start.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ test('should start the server with inspect options and the defalut port is 9320'
t.plan(3)

const start = proxyquire('../start', {
inspector: {
'node:inspector': {
open (p) {
t.equal(p, 9320)
t.pass('inspect open called')
Expand All @@ -733,7 +733,7 @@ test('should start the server with inspect options and use the exactly port', as

const port = getPort()
const start = proxyquire('../start', {
inspector: {
'node:inspector': {
open (p) {
t.equal(p, Number(port))
t.pass('inspect open called')
Expand Down

0 comments on commit 55ffdae

Please sign in to comment.