konacha-chai-matchers 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
@@ -48,12 +48,11 @@
|
|
48
48
|
if (options == null) {
|
49
49
|
options = {};
|
50
50
|
}
|
51
|
+
if (!((typeof router === 'object') && (router instanceof Backbone.Router))) {
|
52
|
+
throw new TypeError('provided router is not a Backbone.Router');
|
53
|
+
}
|
51
54
|
current_history = Backbone.history;
|
52
55
|
Backbone.history = new Backbone.History;
|
53
|
-
if (!((utils.type(router) === 'object') && (router instanceof Backbone.Router))) {
|
54
|
-
throw TypeError('provided router is not a Backbone.Router');
|
55
|
-
}
|
56
|
-
expect(router).to.be.an.instanceOf(Backbone.Router);
|
57
56
|
stub = sinon.stub(router, methodName);
|
58
57
|
router._bindRoutes();
|
59
58
|
if (options.considering != null) {
|