Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(seeds): ensure proper data for expectations
- Loading branch information
Showing
10 changed files
with
121 additions
and
168 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
const cases = [ | ||
{ | ||
_id: '5eb20aaadcf2bd6aae15b4d0', | ||
number: '2020-O5-0001-TZ', | ||
victim: { | ||
referral: '85623679', | ||
pcr: '95623679', | ||
name: 'Jane Mode', | ||
mobile: '255714117841', | ||
age: 30, | ||
weight: 51, | ||
address: 'Tandale', | ||
nextOfKin: { name: 'Asha Mdoe', mobile: '255714104893' }, | ||
}, | ||
description: 'Severe injury from Floods.', | ||
reportedAt: '2020-05-04T02:48:48.323Z', | ||
createdAt: '2020-05-04T02:48:48.323Z', | ||
resolvedAt: '2020-05-04T02:59:48.323Z', | ||
remarks: 'Handled.', | ||
populate: { | ||
reporter: { | ||
match: { name: 'Ali Mdoe' }, | ||
model: 'Party', | ||
}, | ||
resolver: { | ||
match: { name: 'Ali Mdoe' }, | ||
model: 'Party', | ||
}, | ||
'victim.gender': { | ||
match: { namespace: 'PartyGender', 'strings.name.en': 'Female' }, | ||
model: 'Predefine', | ||
}, | ||
'victim.occupation': { | ||
match: { | ||
namespace: 'PartyGender', | ||
'strings.name.en': 'Health Care Worker', | ||
}, | ||
model: 'Predefine', | ||
}, | ||
'victiom.area': { | ||
match: { namespace: 'AdministrativeArea', 'strings.name.en': 'Ilala' }, | ||
model: 'Predefine', | ||
}, | ||
}, | ||
}, | ||
]; | ||
|
||
export default cases; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters