Skip to content

Commit 1e52f2a

Browse files
committed
test: fix tests on node@6
1 parent aab9545 commit 1e52f2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/loading.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describe('loading.test.js', function () {
102102
.into(app, 'proxyClasses');
103103
(function() {
104104
app.proxyClasses.UserProxy();
105-
}).should.throw('Class constructors cannot be invoked without \'new\'');
105+
}).should.throw(/cannot be invoked without 'new'/);
106106
var instance = new app.proxyClasses.UserProxy();
107107
instance.getUser().should.eql({ name: 'xiaochen.gaoxc' });
108108
});
@@ -171,7 +171,7 @@ describe('loading.test.js', function () {
171171
var fixtures = path.join(__dirname, './fixtures/syntax_error');
172172
(function () {
173173
loading(fixtures).into(app, 'model');
174-
}).should.throw(/\[loading\] load file: .*?test\/fixtures\/syntax_error\/error\.js, error: Unexpected identifier/);
174+
}).should.throw(/\[loading\] load file: .*?test\/fixtures\/syntax_error\/error\.js, error:/);
175175
});
176176

177177
// feature detection

0 commit comments

Comments
 (0)