Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Mar 28, 2024
1 parent fd99cf5 commit 4a264d1
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions test/talkClient.mjs
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
import { expect } from 'chai';
import talkClient from '../lib/talk-client.js'

describe('talkClient', function() {
describe('search', function() {
specify('should return a list of comments', async function() {
const params = {
types: ['comments'],
section: 'zooniverse',
page: 1,
pageSize: 10,
query: 'depression'
};
const results = await talkClient.type('searches').get(params);
expect(results).to.be.an('array');
expect(results).to.have.lengthOf(10);
});
specify('should ignore null comments', async function() {
// this Talk query returns 9 comments and one null comment.
const params = {
types: ['comments'],
section: 'zooniverse',
page: 3,
pageSize: 10,
query: 'depression'
};
const results = await talkClient.type('searches').get(params);
expect(results).to.be.an('array');
expect(results).to.have.lengthOf(9);
});
describe('talkClient', function () {
describe('search', function () {
specify('should return a list of comments', async function () {
const params = {
types: ['comments'],
section: 'zooniverse',
page: 1,
pageSize: 10,
query: 'depression'
};
const results = await talkClient.type('searches').get(params);
expect(results).to.be.an('array');
expect(results).to.have.lengthOf(10);
});
});
specify('should ignore null comments', async function () {
// this Talk query returns 9 comments and one null comment.
const params = {
types: ['comments'],
section: 'zooniverse',
page: 3,
pageSize: 10,
query: 'depression'
};
const results = await talkClient.type('searches').get(params);
expect(results).to.be.an('array');
expect(results).to.have.lengthOf(9);
});
});
});

0 comments on commit 4a264d1

Please sign in to comment.