Skip to content

Commit

Permalink
✓ test bulk size getters
Browse files Browse the repository at this point in the history
  • Loading branch information
omrilotan committed Apr 24, 2019
1 parent e5a26f1 commit 397db15
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,18 @@ describe('SDC', () => {
client.generic('count', 'a');
expect(contexts.push).to.equal(client);
});
it('Should expose it\'s bulk size', () => {
const client = new SDC();
const before = client.size;
client.generic('count', 'a');
expect(client.size).to.be.above(before);
});
it('Should return a number (bulk size)', () => {
const client = new SDC();
const bulkSize = client.generic('count', 'a');
expect(bulkSize).to.be.a('number');
expect(bulkSize).to.equal(client.size);
});
it('Should follow functional pipeline', () => {
const order = [];
const client = new SDC();
Expand Down

0 comments on commit 397db15

Please sign in to comment.