@@ -77,7 +77,7 @@ vows.describe('log4js layouts').addBatch({
77
77
}
78
78
} ) , "{ thing: 1 }" ) ;
79
79
} ,
80
- 'should print the stacks of a passed error objects' : function ( layout ) {
80
+ 'should print the stacks of a passed error objects' : function ( layout ) {
81
81
assert . isArray ( layout ( {
82
82
data : [ new Error ( ) ]
83
83
, startTime : new Date ( 2010 , 11 , 5 , 14 , 18 , 30 , 45 )
@@ -86,12 +86,12 @@ vows.describe('log4js layouts').addBatch({
86
86
colour : "green"
87
87
, toString : function ( ) { return "ERROR" ; }
88
88
}
89
- } ) . match ( / E r r o r \s + a t O b j e c t \. < a n o n y m o u s > \s + \( ( .* ) t e s t [ \\ \/ ] l a y o u t s - t e s t \. j s \: \d + \: \d + \) \s + a t r u n T e s t / )
89
+ } ) . match ( / E r r o r \s + a t O b j e c t \. . * \s + \( ( .* ) t e s t [ \\ \/ ] l a y o u t s - t e s t \. j s \: \d + \: \d + \) \s + a t r u n T e s t / )
90
90
, 'regexp did not return a match' ) ;
91
91
} ,
92
- 'with passed augmented errors' :
92
+ 'with passed augmented errors' :
93
93
{ topic :
94
- function ( layout ) {
94
+ function ( layout ) {
95
95
var e = new Error ( "My Unique Error Message" ) ;
96
96
e . augmented = "My Unique attribute value"
97
97
e . augObj = { at1 : "at2" }
@@ -105,15 +105,15 @@ vows.describe('log4js layouts').addBatch({
105
105
}
106
106
} ) ;
107
107
} ,
108
- 'should print error the contained error message' : function ( layoutOutput ) {
108
+ 'should print error the contained error message' : function ( layoutOutput ) {
109
109
var m = layoutOutput . match ( / \{ \[ E r r o r : M y U n i q u e E r r o r M e s s a g e \] / ) ;
110
110
assert . isArray ( m ) ;
111
111
} ,
112
- 'should print error augmented string attributes' : function ( layoutOutput ) {
112
+ 'should print error augmented string attributes' : function ( layoutOutput ) {
113
113
var m = layoutOutput . match ( / a u g m e n t e d : \s ' M y U n i q u e a t t r i b u t e v a l u e ' / ) ;
114
114
assert . isArray ( m ) ;
115
115
} ,
116
- 'should print error augmented object attributes' : function ( layoutOutput ) {
116
+ 'should print error augmented object attributes' : function ( layoutOutput ) {
117
117
var m = layoutOutput . match ( / a u g O b j : \s \{ a t 1 : ' a t 2 ' \} / ) ;
118
118
assert . isArray ( m ) ;
119
119
}
0 commit comments