mirror of https://github.com/nodejs/node.git
test: Fix test-deprecation-flags
Test typos missed in util deprecation commitarchived-io.js-v0.10
parent
896b2aa707
commit
52adc0d963
|
@ -22,7 +22,7 @@
|
|||
var common = require('../common');
|
||||
var assert = require('assert');
|
||||
|
||||
common.print('hello world\r\n');
|
||||
process.stdout.write('hello world\r\n');
|
||||
|
||||
var stdin = process.openStdin();
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ execFile(node, traceDep, function(er, stdout, stderr) {
|
|||
assert.equal(stdout, '');
|
||||
var stack = stderr.trim().split('\n');
|
||||
// just check the top and bottom.
|
||||
assert.equal(stack[0], 'Trace: util.p: Use console.error() instead.');
|
||||
assert.equal(stack[0], 'Trace: util.p: Use console.error() instead');
|
||||
assert.equal(stack.pop(), '\'This is deprecated\'');
|
||||
console.log('trace ok');
|
||||
});
|
||||
|
|
|
@ -80,7 +80,7 @@ function test(environ, shouldWrite) {
|
|||
|
||||
function child() {
|
||||
var util = require('util');
|
||||
var debug = util.debug('tud');
|
||||
var debug = util.debuglog('tud');
|
||||
debug('this', { is: 'a' }, /debugging/);
|
||||
debug('number=%d string=%s obj=%j', 1234, 'asdf', { foo: 'bar' });
|
||||
console.log('ok');
|
||||
|
|
Loading…
Reference in New Issue