Skip to content

Commit

Permalink
Added tests for isResolved
Browse files Browse the repository at this point in the history
  • Loading branch information
LujainAlMansoori committed Sep 25, 2023
1 parent c50f177 commit 1b78ef6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,17 @@ describe('Topic\'s', () => {
done();
});
});

// code for testing sprint 2, ensuring the isResolved attribute for the topic
it('should get the newly added isResolved field for topic', (done) => {
topics.getTopicFields(newTopic.tid, ['isResolved'], (err, data) => {
assert.ifError(err);
assert(Object.keys(data).length === 1);
assert(data.hasOwnProperty('isResolved'));
done();
});
});



describe('.getTopicWithPosts', () => {
Expand Down

0 comments on commit 1b78ef6

Please sign in to comment.