File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ describe('loading.test.js', function () {
102
102
. into ( app , 'proxyClasses' ) ;
103
103
( function ( ) {
104
104
app . proxyClasses . UserProxy ( ) ;
105
- } ) . should . throw ( 'Class constructors cannot be invoked without \ 'new\'' ) ;
105
+ } ) . should . throw ( / c a n n o t b e i n v o k e d w i t h o u t ' n e w ' / ) ;
106
106
var instance = new app . proxyClasses . UserProxy ( ) ;
107
107
instance . getUser ( ) . should . eql ( { name : 'xiaochen.gaoxc' } ) ;
108
108
} ) ;
@@ -171,7 +171,7 @@ describe('loading.test.js', function () {
171
171
var fixtures = path . join ( __dirname , './fixtures/syntax_error' ) ;
172
172
( function ( ) {
173
173
loading ( fixtures ) . into ( app , 'model' ) ;
174
- } ) . should . throw ( / \[ l o a d i n g \] l o a d f i l e : .* ?t e s t \/ f i x t u r e s \/ s y n t a x _ e r r o r \/ e r r o r \. j s , e r r o r : U n e x p e c t e d i d e n t i f i e r / ) ;
174
+ } ) . should . throw ( / \[ l o a d i n g \] l o a d f i l e : .* ?t e s t \/ f i x t u r e s \/ s y n t a x _ e r r o r \/ e r r o r \. j s , e r r o r : / ) ;
175
175
} ) ;
176
176
177
177
// feature detection
You can’t perform that action at this time.
0 commit comments