diff --git a/test/readable.js b/test/readable.js index 86dbd27..d681fd3 100644 --- a/test/readable.js +++ b/test/readable.js @@ -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 () {