Skip to content

Commit

Permalink
Fix read mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Apr 1, 2024
1 parent 1732590 commit cbeea44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions workspaces/libnpmexec/test/prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ t.test('prompt, accepts', async t => {
disableProgress () {},
enableProgress () {},
},
read: async () => 'y',
read: { read: async () => 'y' },
},
})

Expand All @@ -47,7 +47,7 @@ t.test('prompt, accepts', async t => {
mocks: {
'ci-info': { isCI: false },
'../../lib/no-tty.js': () => false,
read: async () => 'y',
read: { read: async () => 'y' },
},
})

Expand Down Expand Up @@ -81,7 +81,7 @@ t.test('prompt, refuses', async t => {
},
disableProgess () {},
},
read: async () => 'n',
read: { read: async () => 'n' },
'../../lib/no-tty.js': () => false,
},
})
Expand Down Expand Up @@ -113,7 +113,7 @@ t.test('prompt, refuses', async t => {
testdir: fixtures,
mocks: {
'ci-info': { isCI: false },
read: async () => 'n',
read: { read: async () => 'n' },
'../../lib/no-tty.js': () => false,
},
})
Expand Down

0 comments on commit cbeea44

Please sign in to comment.