Skip to content

Commit 556b23d

Browse files
committed
refactor: update test env & dependencies
1 parent 5a0c72b commit 556b23d

File tree

7 files changed

+40
-29
lines changed

7 files changed

+40
-29
lines changed

package-lock.json

+17-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"eslint-config-airbnb-base": "^14.2.0",
8585
"eslint-config-prettier": "^6.11.0",
8686
"eslint-plugin-import": "^2.21.2",
87-
"eslint-plugin-jsdoc": "^27.0.7",
87+
"eslint-plugin-jsdoc": "^27.1.1",
8888
"eslint-plugin-mocha": "^7.0.1",
8989
"eslint-plugin-prettier": "^3.1.4",
9090
"generate-changelog": "^1.8.0",
@@ -93,7 +93,7 @@
9393
"lint-staged": "^10.2.10",
9494
"lodash.template": "^4.5.0",
9595
"mocha": "^8.0.1",
96-
"mongoose": ">=5.9.18",
96+
"mongoose": ">=5.9.19",
9797
"npm-check-updates": "^7.0.1",
9898
"nyc": "^15.1.0",
9999
"prettier": "^2.0.5",
@@ -102,15 +102,15 @@
102102
"shelljs": "^0.8.4"
103103
},
104104
"peerDependencies": {
105-
"mongoose": ">=5.9.18"
105+
"mongoose": ">=5.9.19"
106106
},
107107
"dependencies": {
108108
"@codetanzania/emis-stakeholder": ">=2.8.0",
109109
"@codetanzania/ewea-common": ">=0.21.2",
110110
"@codetanzania/ewea-event": ">=0.11.1",
111111
"@codetanzania/ewea-internals": ">=0.21.1",
112-
"@lykmapipo/common": ">=0.35.0",
113-
"@lykmapipo/env": ">=0.17.8",
112+
"@lykmapipo/common": ">=0.35.1",
113+
"@lykmapipo/env": ">=0.17.9",
114114
"@lykmapipo/express-common": ">=0.18.6",
115115
"@lykmapipo/express-rest-actions": ">=0.8.18",
116116
"@lykmapipo/file": ">=0.1.27",

src/case.model.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import { reporter, resolver } from './schema/parties.schema';
3434
import { reportedAt, resolvedAt } from './schema/dates.schema';
3535

3636
const SCHEMA = mergeObjects(
37-
{ number },
37+
{ number }, // TODO: occured location
3838
{ stage, severity },
3939
{ victim },
4040
{ description },

src/internals.js

+9
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,12 @@ export const AUTOPOPULATE_OPTION_PARTY = {
5050
select: { name: 1, email: 1, mobile: 1, abbreviation: 1, role: 1 },
5151
maxDepth: 2,
5252
};
53+
54+
export const sendFollowupRequest = () => {
55+
// TODO: if requested has no campaign
56+
// TODO: if request.campaign failed
57+
};
58+
export const sendFollowupResult = () => {
59+
// TODO: if verified has no campaign
60+
// TODO: if verifiried.campaign failed
61+
};

src/schema/common.schema.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,9 @@ export const victim = createSubSchema({
656656
area,
657657
locale,
658658
nextOfKin,
659-
// csids.
659+
// TODO: csids.
660+
// TODO: lastKnownLocation
661+
// TODO: lastKnownAddress
660662
});
661663

662664
/**
@@ -683,7 +685,7 @@ export const victim = createSubSchema({
683685
export const followup = createSubSchema({
684686
follower,
685687
followedAt,
686-
symptoms: properties,
688+
symptoms: properties, // TODO: rename to data/instance/results
687689
score, // TODO: systemScore vs followerScore
688690
outcome,
689691
remarks,

test/integration/bootstrap.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ process.env.JWT_SUBJECT = 'ewea';
1414
process.env.JWT_EXPIRES_IN = '7 days';
1515
process.env.JWT_API_TOKEN_EXPIRES_IN = '1000y';
1616
process.env.DEFAULT_TRANSPORT_NAME = 'echo';
17-
process.env.ENABLE_SYNC_TRANSPORT = true;
18-
process.env.NOTIFICATION_CHANNELS = 'EMAIL';
17+
process.env.DEFAULT_CAMPAIGN_CHANNELS = 'EMAIL';
18+
process.env.DEFAULT_ENABLE_SYNC_TRANSPORT = true;
1919

2020
before((done) => connect(done));
2121

test/unit/bootstrap.spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ process.env.JWT_SUBJECT = 'ewea';
1313
process.env.JWT_EXPIRES_IN = '7 days';
1414
process.env.JWT_API_TOKEN_EXPIRES_IN = '1000y';
1515
process.env.DEFAULT_TRANSPORT_NAME = 'echo';
16-
process.env.ENABLE_SYNC_TRANSPORT = true;
17-
process.env.NOTIFICATION_CHANNELS = 'EMAIL';
16+
process.env.DEFAULT_CAMPAIGN_CHANNELS = 'EMAIL';
17+
process.env.DEFAULT_ENABLE_SYNC_TRANSPORT = true;

0 commit comments

Comments
 (0)