diff --git a/modules/angular1_router/test/integration/router_spec.js b/modules/angular1_router/test/integration/router_spec.js index 9ef4224545..81218edeb4 100644 --- a/modules/angular1_router/test/integration/router_spec.js +++ b/modules/angular1_router/test/integration/router_spec.js @@ -139,12 +139,8 @@ describe('router', function () { bindings: options.bindings, controller: getController(options), }; - if (options.template) { - definition.template = options.template; - } - if (options.templateUrl) { - definition.templateUrl = options.templateUrl; - } + if (options.template) definition.template = options.template; + if (options.templateUrl) definition.templateUrl = options.templateUrl; applyStaticProperties(definition, options); $compileProvider.component(name, definition);