Skip to content

Commit

Permalink
Added the backend tests for isResolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Lujain committed Oct 4, 2023
1 parent 18435e0 commit a4efe76
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/topics.js
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,7 @@ describe('Topic\'s', () => {
assert.ifError(err);
assert.equal(response.statusCode, 200);
//console.log(body._header);
// added the tests below
assert.strictEqual(body._header.tags.meta.find(t => t.name === 'description').content, 'topic content');
assert.strictEqual(body._header.tags.meta.find(t => t.property === 'og:description').content, 'topic content');
assert.strictEqual(body.isResolved, 'true');
Expand Down

0 comments on commit a4efe76

Please sign in to comment.