projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e01d63
)
test: Fix test-repl-autolibs inspect call
author
isaacs
<i@izs.me>
Tue, 2 Oct 2012 23:54:49 +0000
(16:54 -0700)
committer
isaacs
<i@izs.me>
Fri, 14 Dec 2012 18:52:26 +0000
(10:52 -0800)
test/simple/test-repl-autolibs.js
patch
|
blob
|
history
diff --git
a/test/simple/test-repl-autolibs.js
b/test/simple/test-repl-autolibs.js
index
0f4ae8b
..
a8ee68c
100644
(file)
--- a/
test/simple/test-repl-autolibs.js
+++ b/
test/simple/test-repl-autolibs.js
@@
-48,8
+48,9
@@
function test1(){
putIn.write = function (data) {
gotWrite = true;
if (data.length) {
+
// inspect output matches repl output
- assert.equal(data, util.inspect(require('fs'), null,
null
, false) + '\n');
+ assert.equal(data, util.inspect(require('fs'), null,
2
, false) + '\n');
// globally added lib matches required lib
assert.equal(global.fs, require('fs'));
test2();