diff --git a/app/modules/home/duties/duty.directive.spec.coffee b/app/modules/home/duties/duty.directive.spec.coffee index 25c9729f..71909cbc 100644 --- a/app/modules/home/duties/duty.directive.spec.coffee +++ b/app/modules/home/duties/duty.directive.spec.coffee @@ -52,10 +52,6 @@ describe "homeDirective", () -> project: 1 ref: 1 _name: "userstories" - subject: "Testing js subject" - status_extra_info: { - color: "#CCCCCC" - } assigned_to_extra_info: { photo: "http://jstesting.taiga.io/photo" full_name_display: "Taiga testing js" @@ -72,8 +68,10 @@ describe "homeDirective", () -> mockTranslate.instant .withArgs("COMMON.USER_STORY") - .returns("COMMON.USER_STORY") + .returns("User story translated") elm = createDirective() scope.$apply() - expect(elm.find('.duty-status').css("color")).to.be.equal('rgb(204, 204, 204)') + expect(elm.isolateScope().vm.getDutyType()).to.be.equal("User story translated") + expect(elm.isolateScope().vm.getUrl()).to.be.equal("http://jstesting.taiga.io") + expect(elm.isolateScope().vm.getProjectName()).to.be.equal("testing js project") diff --git a/app/modules/home/home.directive.spec.coffee b/app/modules/home/home.directive.spec.coffee index cc12cfaf..9d96a1ee 100644 --- a/app/modules/home/home.directive.spec.coffee +++ b/app/modules/home/home.directive.spec.coffee @@ -57,4 +57,5 @@ describe "homeDirective", () -> it "home directive content", () -> elm = createDirective() scope.$apply() - expect(elm.find('.duty-single')).to.have.length(6) + expect(elm.isolateScope().vm.assignedTo.size).to.be.equal(3) + expect(elm.isolateScope().vm.watching.size).to.be.equal(3)