Skip to content

Commit

Permalink
fix #77
Browse files Browse the repository at this point in the history
  • Loading branch information
toffick committed Feb 5, 2018
1 parent 2a1b5cd commit fb7b720
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/modules/cache.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ describe('modules/cache', () => {
expect(ret).to.be.an('string');
expect(ret).to.be.equal(redisResult);
});

});

describe('.removeByPattern', () => {
Expand Down Expand Up @@ -330,6 +331,7 @@ describe('modules/cache', () => {
expect(deleteJsonForKeyStub.getCall(1).args.length).to.be.equal(1);
expect(deleteJsonForKeyStub.getCall(1).args[0]).to.be.equal(resArrays[2][1]);
});

});

describe('.flushDb', () => {
Expand Down Expand Up @@ -366,6 +368,7 @@ describe('modules/cache', () => {
expect(ret).to.be.an('string');
expect(ret).to.be.equal(redisResult);
});

});

describe('.cleanup', () => {
Expand Down Expand Up @@ -394,6 +397,7 @@ describe('modules/cache', () => {

expect(quitStub.callCount).to.be.equal(0);
});

});

describe('.quit', () => {
Expand Down Expand Up @@ -430,6 +434,7 @@ describe('modules/cache', () => {
expect(ret).to.be.an('string');
expect(ret).to.be.equal(redisResult);
});

});

describe('.onNewBlock', () => {
Expand Down Expand Up @@ -460,6 +465,7 @@ describe('modules/cache', () => {
expect(removeByPatternStub.firstCall.args.length).to.be.equal(1);
expect(removeByPatternStub.secondCall.args.length).to.be.equal(1);
});

});

describe('.onFinishRound', () => {
Expand Down Expand Up @@ -523,6 +529,7 @@ describe('modules/cache', () => {
expect(spyHelper.callback.firstCall.args.length).to.be.equal(1);
expect(spyHelper.callback.firstCall.args[0]).to.be.equal(error);
});

});

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

0 comments on commit fb7b720

Please sign in to comment.