Skip to content

Commit ccdffc4

Browse files
committed
Add beforeEach method to reset cache prior to each test.
1 parent 7b4fcd9 commit ccdffc4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/lib/redis-store-zlib-spec.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ describe('Compression Tests', function () {
4242
testJson = JSON.stringify(testObject);
4343
});
4444

45+
beforeEach(function(done) {
46+
redisCompressCache.reset(function () {
47+
done();
48+
});
49+
});
50+
4551
describe('compress set', function () {
4652
it('should store a value without ttl', function (done) {
4753
redisCompressCache.set('foo', 'bar', function (err) {

0 commit comments

Comments
 (0)