Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit c107206

Browse files
committed
missing quotes on previous test and space for object in current
1 parent 0c4f90f commit c107206

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/log.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('log()', function(){
1919

2020
util.log(1, 2, 3, 4, 'five');
2121
var time = util.date(new Date(), 'HH:MM:ss');
22-
writtenValue.should.eql('[' + util.colors.grey(time) + '] 1 2 3 4 five\n');
22+
writtenValue.should.eql('[' + util.colors.grey(time) + '] 1 2 3 4 \'five\'\n');
2323

2424
done();
2525
});
@@ -39,9 +39,10 @@ describe('log()', function(){
3939
};
4040

4141
util.log('%s %d %j', 'something', 0.1, {key: 'value'});
42-
var time = util.colors.grey(util.date(new Date(), 'HH:MM:ss'));
42+
var time = util.date(new Date(), 'HH:MM:ss');
4343
writtenValue.should.eql(
44-
'[' + time + '] something 0.1 {\"key\": \"value\"}\n'
44+
'[' + util.colors.grey(time) + '] '+
45+
'something 0.1 {\"key\":\"value\"}\n'
4546
);
4647

4748
done();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy