@@ -44,39 +44,39 @@ describe('Custom Loader', function () {
44
44
it ( 'should make the normalize throw' , function ( done ) {
45
45
customLoader . import ( 'test/loader/error1-parent.js' )
46
46
. then ( supposeToFail , function ( e ) {
47
- expect ( e ) . to . contain ( 'Error loading "' + base + 'error1-parent.js" at ' + base + 'error1-parent\.js' ) ;
47
+ expect ( e . toString ( ) ) . to . contain ( 'Error loading "' + base + 'error1-parent.js" at ' + base + 'error1-parent\.js' ) ;
48
48
} )
49
49
. then ( done , done ) ;
50
50
} ) ;
51
51
52
52
it ( 'should make the locate throw' , function ( done ) {
53
53
customLoader . import ( 'test/loader/error2' )
54
54
. then ( supposeToFail , function ( e ) {
55
- expect ( e ) . to . be . contain ( 'Error loading "' + base + 'error2" at ' + base + 'error2' ) ;
55
+ expect ( e . toString ( ) ) . to . be . contain ( 'Error loading "' + base + 'error2" at ' + base + 'error2' ) ;
56
56
} )
57
57
. then ( done , done ) ;
58
58
} ) ;
59
59
60
60
it ( 'should make the fetch throw' , function ( done ) {
61
61
customLoader . import ( 'test/loader/error3' )
62
62
. then ( supposeToFail , function ( e ) {
63
- expect ( e ) . to . be . contain ( 'Error loading "' + base + 'error3" at ' + base + 'error3' ) ;
63
+ expect ( e . toString ( ) ) . to . be . contain ( 'Error loading "' + base + 'error3" at ' + base + 'error3' ) ;
64
64
} )
65
65
. then ( done , done ) ;
66
66
} ) ;
67
67
68
68
it ( 'should make the translate throw' , function ( done ) {
69
69
customLoader . import ( 'test/loader/error4' )
70
70
. then ( supposeToFail , function ( e ) {
71
- expect ( e ) . to . be . contain ( 'Error loading "' + base + 'error4" at ' + base + 'error4' ) ;
71
+ expect ( e . toString ( ) ) . to . be . contain ( 'Error loading "' + base + 'error4" at ' + base + 'error4' ) ;
72
72
} )
73
73
. then ( done , done ) ;
74
74
} ) ;
75
75
76
76
it ( 'should make the instantiate throw' , function ( done ) {
77
77
customLoader . import ( 'test/loader/error5' )
78
78
. then ( supposeToFail , function ( e ) {
79
- expect ( e ) . to . be . contain ( 'Error loading "' + base + 'error5" at ' + base + 'error5' ) ;
79
+ expect ( e . toString ( ) ) . to . be . contain ( 'Error loading "' + base + 'error5" at ' + base + 'error5' ) ;
80
80
} )
81
81
. then ( done , done ) ;
82
82
} ) ;
0 commit comments