From 028f0837468b9bfa5a767dc44014526d140a84a2 Mon Sep 17 00:00:00 2001 From: "alejandro.bulgaris@qcif.edu.au" Date: Tue, 25 Jun 2024 03:41:57 +0000 Subject: [PATCH] Fix one more mocha unit test in forms service --- test/unit/services/FormsService.test.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/unit/services/FormsService.test.js b/test/unit/services/FormsService.test.js index f98cf52ba4..9c3d27b7a5 100644 --- a/test/unit/services/FormsService.test.js +++ b/test/unit/services/FormsService.test.js @@ -43,7 +43,6 @@ describe('The FormsService', function () { }; FormsService.getForm(brand, '', true, '', record).subscribe(form => { expect(form).to.have.property('name', formName); - // expect(true).to.eq(true); done(); }) }); @@ -58,8 +57,7 @@ describe('The FormsService', function () { } }; FormsService.getForm(brand, '', true, '', record).subscribe(form => { - // expect(form).to.have.property('name', formName); - expect(true).to.eq(true); + expect(form).to.have.property('name', formName); done(); }) }); @@ -69,7 +67,6 @@ describe('The FormsService', function () { let formName = 'default-1.0-draft'; FormsService.getForm(brand, formName, true, 'rdmp', {}).subscribe(form => { expect(form).to.have.property('name', formName); - // expect(true).to.eq(true); done(); }) }); @@ -79,7 +76,6 @@ describe('The FormsService', function () { let formName = 'generated-view-only'; FormsService.getForm(brand, formName, true, 'rdmp', {}).subscribe(form => { expect(form).to.have.property('name', formName); - //expect(true).to.eq(true); done(); }) });