Fix karma specs.

pull/3563/head
Tim Habermaas 9 years ago committed by Stefan Botzenhart
parent 3951bcb7cd
commit 0be7cc7d24
  1. 2
      frontend/tests/unit/tests/work_packages/controllers/work-packages-list-controller-test.js
  2. 4
      frontend/tests/unit/tests/work_packages/directives/work-package-column-directive-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() {

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

Loading…
Cancel
Save