8000 Fixed layout stack trace test · rboss/log4js-node@de72005 · GitHub
[go: up one dir, main page]

Skip to content

Commit de72005

Browse files
author
Gareth Jones
committed
Fixed layout stack trace test
1 parent c6a0e58 commit de72005

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/layouts-test.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ vows.describe('log4js layouts').addBatch({
7777
}
7878
}), "{ thing: 1 }");
7979
},
80-
'should print the stacks of a passed error objects': function(layout) {
80+
'should print the stacks of a passed error objects': function(layout) {
8181
assert.isArray(layout({
8282
data: [ new Error() ]
8383
, startTime: new Date(2010, 11, 5, 14, 18, 30, 45)
@@ -86,12 +86,12 @@ vows.describe('log4js layouts').addBatch({
8686
colour: "green"
8787
, toString: function() { return "ERROR"; }
8888
}
89-
}).match(/Error\s+at Object\.<anonymous>\s+\((.*)test[\\\/]layouts-test\.js\:\d+\:\d+\)\s+at runTest/)
89+
}).match(/Error\s+at Object\..*\s+\((.*)test[\\\/]layouts-test\.js\:\d+\:\d+\)\s+at runTest/)
9090
, 'regexp did not return a match');
9191
},
92-
'with passed augmented errors':
92+
'with passed augmented errors':
9393
{ topic:
94-
function(layout){
94+
function(layout){
9595
var e = new Error("My Unique Error Message");
9696
e.augmented = "My Unique attribute value"
9797
e.augObj = { at1: "at2" }
@@ -105,15 +105,15 @@ vows.describe('log4js layouts').addBatch({
105105
}
106106
});
107107
},
108-
'should print error the contained error message': function(layoutOutput) {
108+
'should print error the contained error message': function(layoutOutput) {
109109
var m = layoutOutput.match(/\{ \[Error: My Unique Error Message\]/);
110110
assert.isArray(m);
111111
},
112-
'should print error augmented string attributes': function(layoutOutput) {
112+
'should print error augmented string attributes': function(layoutOutput) {
113113
var m = layoutOutput.match(/augmented:\s'My Unique attribute value'/);
114114
assert.isArray(m);
115115
},
116-
'should print error augmented object attributes': function(layoutOutput) {
116+
'should print error augmented object attributes': function(layoutOutput) {
117117
var m = layoutOutput.match(/augObj:\s\{ at1: 'at2' \}/);
118118
assert.isArray(m);
119119
}

0 commit comments

Comments
 (0)
0