Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

Commit

Permalink
Fix Node.js deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Bridgewater committed Nov 25, 2015
1 parent bb41c90 commit 732d24d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions redis.test.js
Expand Up @@ -120,7 +120,7 @@ function with_timeout(name, cb, millis) {
}

next = function next(name) {
console.log(" \x1b[33m" + (Date.now() - cur_start) + "\x1b[0m ms");
console.log('- \x1b[1m' + name.toLowerCase() + '\x1b[0m: \x1b[33m' + (Date.now() - cur_start) + '\x1b[0m ms');
run_next_test();
};

Expand Down Expand Up @@ -2268,7 +2268,6 @@ test_count = 0;
run_next_test = function run_next_test() {
var test_name = all_tests.shift();
if (typeof tests[test_name] === "function") {
util.print('- \x1b[1m' + test_name.toLowerCase() + '\x1b[0m:');
cur_start = new Date();
test_count += 1;
tests[test_name]();
Expand Down

0 comments on commit 732d24d

Please sign in to comment.