From 47d153d7f90b7fdc846046628ee989dd97955407 Mon Sep 17 00:00:00 2001 From: Loren Sands-Ramshaw Date: Wed, 4 May 2016 18:26:43 -0400 Subject: [PATCH] When route not found during testing, don't log error --- client/router.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/router.js b/client/router.js index ae91751..a499303 100644 --- a/client/router.js +++ b/client/router.js @@ -344,7 +344,10 @@ Router.prototype._notfoundRoute = function(context) { // XXX this.notfound kept for backwards compatibility this.notFound = this.notFound || this.notfound; if(!this.notFound) { - console.error("There is no route for the path:", context.path); + if(!Meteor.isTest && !Meteor.isPackageTest) { + console.error("There is no route for the path:", context.path); + } + return; }