mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
minor code cleanup in test helper
This commit is contained in:
parent
7be2ac1150
commit
85c93d2af5
@ -5,7 +5,6 @@ EventEmitter = require('events').EventEmitter;
|
||||
BufferList = require(__dirname+'/buffer-list');
|
||||
buffers = require(__dirname+'/test-buffers');
|
||||
|
||||
|
||||
assert.same = function(actual, expected) {
|
||||
for(var key in expected) {
|
||||
assert.equal(actual[key], expected[key]);
|
||||
@ -53,11 +52,12 @@ test = function(name, action) {
|
||||
test.testCount = 0;
|
||||
test.ignored = [];
|
||||
test.errors = [];
|
||||
test.start = new Date();
|
||||
|
||||
var start = new Date();
|
||||
process.on('exit', function() {
|
||||
console.log('');
|
||||
console.log('Ran ' + test.testCount + ' tests in ' + ((new Date() - start)/1000) + ' seconds');
|
||||
var duration = ((new Date() - test.start)/1000);
|
||||
console.log('Ran ' + test.testCount + ' tests in ' + duration + ' seconds');
|
||||
test.ignored.forEach(function(name) {
|
||||
console.log("Ignored: " + name);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user