Skip to content

Commit

Permalink
changed beforeEach/afterEach to before/after
Browse files Browse the repository at this point in the history
  • Loading branch information
shriramshankar committed Aug 16, 2017
1 parent dd62ec5 commit 16fdda6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/realtime/redisPublisher.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ describe('publishSample with redis cache on', () => {
const aspectName = `${tu.namePrefix}Aspect`;
const sampleName = `${subjectName}|${aspectName}`;

before(() => tu.toggleOverride('enableRedisSampleStore', true));
beforeEach((done) => {
before((done) => {
tu.toggleOverride('enableRedisSampleStore', true);
let a1;
let s1;
Aspect.create({
Expand Down Expand Up @@ -61,9 +61,10 @@ describe('publishSample with redis cache on', () => {
.catch(done);
});

afterEach(rtu.forceDelete);
afterEach(rtu.flushRedis);
after(() => tu.toggleOverride('enableRedisSampleStore', false));
after((done) => {
tu.toggleOverride('enableRedisSampleStore', false);
rtu.forceDelete(done);
});

it('certain fields in aspect should be array, and others ' +
'should be undefined', (done) => {
Expand Down

0 comments on commit 16fdda6

Please sign in to comment.