Skip to content

Commit

Permalink
Patch: COM-544 Fix unit test
Browse files Browse the repository at this point in the history
Fixes a breaking unit test
  • Loading branch information
tmvumbi2 authored and lauvignoli committed Sep 17, 2019
1 parent 18a9da0 commit 564e8c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/test/unit/clinical/models/drugOrderViewModel.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ describe("drugOrderViewModel", function () {
treatment.calculateDurationInDays();
expect(treatment.durationInDays).toBe(42);

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

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

0 comments on commit 564e8c0

Please sign in to comment.