Skip to content

Commit 5336ddc

Browse files
committed
added an empty-case test
1 parent 34b475a commit 5336ddc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/helpers/fhirUtils.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ describe('allResourcesInBundle', () => {
8484
});
8585

8686
describe('getResourceCountInBundle', () => {
87+
test('Returns an empty object when given an empty object', () => {
88+
const emptyCounts = {};
89+
expect(getResourceCountInBundle({})).toEqual(emptyCounts);
90+
});
91+
8792
test('Counts five different resources, all at the same depth', () => {
8893
const counts = {
8994
'Resource-1': [1],

0 commit comments

Comments
 (0)