From 0be7cc7d24df358922a05e3b01b235424d7d72c2 Mon Sep 17 00:00:00 2001 From: Tim Habermaas Date: Tue, 15 Sep 2015 00:06:05 +0200 Subject: [PATCH] Fix karma specs. --- .../controllers/work-packages-list-controller-test.js | 2 +- .../directives/work-package-column-directive-test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/tests/unit/tests/work_packages/controllers/work-packages-list-controller-test.js b/frontend/tests/unit/tests/work_packages/controllers/work-packages-list-controller-test.js index 227626cfb5..b3e9ef3fa8 100644 --- a/frontend/tests/unit/tests/work_packages/controllers/work-packages-list-controller-test.js +++ b/frontend/tests/unit/tests/work_packages/controllers/work-packages-list-controller-test.js @@ -275,7 +275,7 @@ describe('WorkPackagesListController', function() { url: angular.identity }; - buildController({}, testState, testLocation); + buildController({projectPath: ''}, testState, testLocation); }); it('returns 0 with no filters', function() { diff --git a/frontend/tests/unit/tests/work_packages/directives/work-package-column-directive-test.js b/frontend/tests/unit/tests/work_packages/directives/work-package-column-directive-test.js index 2e1f8e0e92..4e54b9d066 100644 --- a/frontend/tests/unit/tests/work_packages/directives/work-package-column-directive-test.js +++ b/frontend/tests/unit/tests/work_packages/directives/work-package-column-directive-test.js @@ -294,9 +294,9 @@ describe('workPackageColumn Directive', function() { compile(); }); - it('should have correct href', function() { + it('should have correct ui-sref', function() { var content = element.find('a').last(); - expect(content.attr('href')).to.equal('/work_packages/1'); + expect(content.attr('ui-sref')).to.equal("work-packages.show.activity({projectPath: '', workPackageId: 1})"); }); it('should have the title equal to content', function() { var tag = element.find('a').last();