From fbb74784b51701278f7bfdf1038922a02fc18632 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 27 Jan 2011 17:02:25 -0800 Subject: [PATCH] Remove more process.assert --- test/simple/test-module-loading.js | 2 +- test/simple/test-net-binary.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/simple/test-module-loading.js b/test/simple/test-module-loading.js index 6c09285057..25002fa6f0 100644 --- a/test/simple/test-module-loading.js +++ b/test/simple/test-module-loading.js @@ -107,7 +107,7 @@ common.debug('load modules by absolute id, then change require.paths, ' + 'and load another module with the same absolute id.'); // this will throw if it fails. var foo = require('../fixtures/require-path/p1/foo'); -process.assert(foo.bar.expect === foo.bar.actual); +assert.ok(foo.bar.expect === foo.bar.actual); assert.equal(require('../fixtures/foo').foo, 'ok', 'require module with no extension'); diff --git a/test/simple/test-net-binary.js b/test/simple/test-net-binary.js index 5e56213136..616e065265 100644 --- a/test/simple/test-net-binary.js +++ b/test/simple/test-net-binary.js @@ -13,8 +13,8 @@ for (var i = 255; i >= 0; i--) { JSON.stringify(String.fromCharCode(i)) + ' ' + S.charCodeAt(0)); - process.assert(S.charCodeAt(0) == i); - process.assert(S == String.fromCharCode(i)); + assert.ok(S.charCodeAt(0) == i); + assert.ok(S == String.fromCharCode(i)); binaryString += S; }