test: Fix test-deprecation-flags

Test typos missed in util deprecation commit
archived-io.js-v0.10
isaacs 2013-05-22 11:42:38 -07:00
parent 896b2aa707
commit 52adc0d963
3 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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');
});

View File

@ -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');