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();