Skip to content

Commit

Permalink
COM-921 Fix unit test
Browse files Browse the repository at this point in the history
A six months period can have 181 days (i.e. 1 Jan 2018 - 1 Jul 2018)
  • Loading branch information
tmvumbi2 committed Sep 3, 2020
1 parent 595be52 commit ea88161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/test/unit/clinical/models/drugOrderViewModel.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ describe("drugOrderViewModel", function () {

treatment.durationUnit = "Mois";
treatment.calculateDurationInDays();
expect(treatment.durationInDays >= 182 && treatment.durationInDays < 185).toBeTruthy();
expect(treatment.durationInDays >= 181 && treatment.durationInDays < 185).toBeTruthy();

treatment.durationUnit = "Day(s)"
treatment.calculateDurationInDays();
Expand Down

0 comments on commit ea88161

Please sign in to comment.