File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " oscar " ,
3
- "version" : " 1.0.2 " ,
2
+ "name" : " Oscar " ,
3
+ "version" : " 1.0.3 " ,
4
4
"devDependencies" : {
5
5
"grunt" : " ~0.4.5" ,
6
6
"grunt-ts" : " ~1.12.1" ,
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ class Assert {
80
80
}
81
81
82
82
/**
83
- * Asserts provided function to throw an error
83
+ * Asserts provided function throws an error
84
84
* @param {() => void } func [description]
85
85
*/
86
86
static throws ( func : ( ) => void ) : void {
Original file line number Diff line number Diff line change @@ -328,6 +328,11 @@ class TestSuite implements Oscar.IOscarObserverListener {
328
328
} else {
329
329
outcome += 'fail">' + testMethod . getName ( ) + ' FAILED' ;
330
330
outcome += '<p class="error">' + testMethod . getError ( ) . toString ( ) + '</p>' ;
331
+ console . log (
332
+ '%c' + testMethod . getName ( ) + ' failed with error ' + testMethod . getError ( ) . message ,
333
+ 'color: red'
334
+ ) ;
335
+ console . log ( '%c' + ( < any > testMethod . getError ( ) ) . stack , 'color : red' ) ;
331
336
}
332
337
outcome += '</li>' ;
333
338
}
You can’t perform that action at this time.
0 commit comments