Assert read value instead of exception
This commit is contained in:
parent
28b33074cf
commit
d76c970da6
1 changed files with 2 additions and 4 deletions
|
@ -247,12 +247,10 @@ describe('node feature', function () {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
it('does not throw an exception when calling read()', function () {
|
it('returns null when read from', function () {
|
||||||
assert.doesNotThrow(function () {
|
|
||||||
assert.equal(process.stdin.read(), null)
|
assert.equal(process.stdin.read(), null)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
|
||||||
|
|
||||||
describe('process.version', function () {
|
describe('process.version', function () {
|
||||||
it('should not have -pre', function () {
|
it('should not have -pre', function () {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue