Clean up util tests and wrap in namespace

This commit is contained in:
TonyYang
2016-09-08 12:38:02 +08:00
committed by GitHub
parent d21bb59928
commit 9567ccc5e3
+10 -3
View File
@@ -356,10 +356,17 @@ url.format({
var helloUrl = url.parse('http://example.com/?hello=world', true)
assert.equal(helloUrl.query.hello, 'world');
////////////////////////////////////////////////////
/// util tests : https://nodejs.org/api/util.html ///
////////////////////////////////////////////////////
// Old and new util.inspect APIs
util.inspect(["This is nice"], false, 5);
util.inspect(["This is nice"], { colors: true, depth: 5, customInspect: false });
namesapce util_tests{
{
// Old and new util.inspect APIs
util.inspect(["This is nice"], false, 5);
util.inspect(["This is nice"], { colors: true, depth: 5, customInspect: false });
}
}
////////////////////////////////////////////////////
/// Stream tests : http://nodejs.org/api/stream.html