@ltht-react/utils
Advanced tools
Comparing version 1.1.63 to 1.1.64
@@ -6,2 +6,10 @@ # Change Log | ||
## 1.1.64 (2022-04-22) | ||
**Note:** Version bump only for package @ltht-react/utils | ||
## 1.1.63 (2022-03-31) | ||
@@ -8,0 +16,0 @@ |
@@ -154,14 +154,4 @@ "use strict"; | ||
}; | ||
expect(patient_1.formatPatientAge(patient, false)).toEqual('13d'); | ||
expect(patient_1.formatPatientAge(patient, false)).toEqual('14d'); | ||
}); | ||
it('returns formatted age when birth date is specified (under 4 weeks and over 2 days)', function () { | ||
var date = new Date(); | ||
var currentDate = date.getDate(); | ||
date.setDate(currentDate - 14); // set to two weeks ago | ||
patient.birthDate = { | ||
kind: types_1.PartialDateTimeKindCode.Date, | ||
value: date.toISOString(), | ||
}; | ||
expect(patient_1.formatPatientAge(patient, false)).toEqual('13d'); | ||
}); | ||
it('returns formatted age when birth date is specified (under 2 days and over 2 hours)', function () { | ||
@@ -285,3 +275,3 @@ var date = new Date(); | ||
}; | ||
expect(patient_1.formatPatientAge(patient, true)).toEqual('16d'); | ||
expect(patient_1.formatPatientAge(patient, true)).toEqual('17d'); | ||
}); | ||
@@ -288,0 +278,0 @@ it('returns formatted age when patient is deceased (under 2 days and over 2 hours)', function () { |
{ | ||
"name": "@ltht-react/utils", | ||
"version": "1.1.63", | ||
"version": "1.1.64", | ||
"description": "> TODO: description", | ||
@@ -25,5 +25,5 @@ "author": "Jonny Smith <jonny.asmith@gmail.com>", | ||
"dependencies": { | ||
"@ltht-react/types": "^1.0.61" | ||
"@ltht-react/types": "^1.0.62" | ||
}, | ||
"gitHead": "f2c644e934869e88ca05a8e46bdbfbfb39da5aa1" | ||
"gitHead": "63a2fb34d69da30c04e6849549ed1127c0ffba96" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
116917
90
1283
Updated@ltht-react/types@^1.0.62