mirror of
https://github.com/electron/electron.git
synced 2026-01-25 15:28:11 -05:00
Assert read value instead of exception
This commit is contained in:
@@ -247,10 +247,8 @@ describe('node feature', function () {
|
||||
})
|
||||
})
|
||||
|
||||
it('does not throw an exception when calling read()', function () {
|
||||
assert.doesNotThrow(function () {
|
||||
assert.equal(process.stdin.read(), null)
|
||||
})
|
||||
it('returns null when read from', function () {
|
||||
assert.equal(process.stdin.read(), null)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user