Skip to content

Commit

Permalink
Add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperisager committed Dec 11, 2024
1 parent e00b3c0 commit f62e728
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/readable.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,12 +405,13 @@ test('setEncoding empty string', async function (t) {

test('is disturbed', function (t) {
const r = new Readable()
t.is(isDisturbed(r), false)

t.not(isDisturbed(r))
r.push('hello')
t.is(isDisturbed(r), false)

r.resume()

t.ok(isDisturbed(r))
t.is(isDisturbed(r), true)
})

function nextImmediate () {
Expand Down

0 comments on commit f62e728

Please sign in to comment.