Skip to content
This repository was archived by the owner on Oct 21, 2020. It is now read-only.

Commit fcf580f

Browse files
committed
feat: update comments and expected results in test
1 parent 3897ccb commit fcf580f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/dataLayer/mongo/communityEvent.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ export async function validatedRequestor(context) {
117117
return null;
118118
}
119119

120-
// TODO: add test for this
121120
const user = await UserModel.findOne({ email: email }, '_id')
122121
.exec()
123122
.catch(err => {
@@ -219,7 +218,7 @@ export async function createCommunityEvent(root, vars, ctx) {
219218
});
220219
}
221220

222-
// TODO: validate event against schema.
221+
// TODO: populate object with what is there, and validate against a schema
223222
const event = new CommunityEventModel(newEvent);
224223

225224
return await event.save(err => {

src/dataLayer/mongo/event-datalayer.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ describe('getCommunityEvents', () => {
292292

293293
// TODO: 2 depend on other tests to create events for us,
294294
// this is a bit brittle..
295-
expect(result).toHaveLength(2);
295+
expect(result).toHaveLength(3);
296296
expect(isObject(result)).toBe(true);
297297
expect(isObject(owner)).toBe(true);
298298
expect(isObject(attendees[0])).toBe(true);

0 commit comments

Comments
 (0)