Skip to content

Commit

Permalink
test individual comments
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Mar 28, 2024
1 parent 4a264d1 commit de19008
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/talkClient.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ describe('talkClient', function () {
const results = await talkClient.type('searches').get(params);
expect(results).to.be.an('array');
expect(results).to.have.lengthOf(10);
results.forEach(result => {
expect(result.type).to.equal('Comment');
expect(result.body).to.be.a('string');
});
});
specify('should ignore null comments', async function () {
// this Talk query returns 9 comments and one null comment.
Expand All @@ -27,6 +31,10 @@ describe('talkClient', function () {
const results = await talkClient.type('searches').get(params);
expect(results).to.be.an('array');
expect(results).to.have.lengthOf(9);
results.forEach(result => {
expect(result.type).to.equal('Comment');
expect(result.body).to.be.a('string');
});
});
});
});

0 comments on commit de19008

Please sign in to comment.