Skip to content

Commit d175f63

Browse files
committed
build: fix linter error (see full commit message)
"Unexpected use of Mocha `beforeEach` hook for a single test case" "Unexpected use of Mocha `afterEach` hook for a single test case"
1 parent 0dc2333 commit d175f63

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

test/server/talk-control-server.spec.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,8 @@ describe('should have instantiated', function() {
3030
});
3131

3232
describe('emitStateChanges()', function() {
33-
let emit;
34-
beforeEach(function() {
35-
emit = stub(talkControlServer.eventBusServer, 'emit');
36-
});
37-
38-
afterEach(function() {
39-
emit.restore();
40-
});
41-
4233
it('should fire "gotoSlide" event', function() {
34+
const emit = stub(talkControlServer.eventBusServer, 'emit');
4335
// Given
4436
const state = { currentSlide: { h: 1, v: 0, f: 0 }, slides: [{ h: 0, v: 0, f: 0, fMax: 0 }, { h: 1, v: 0, f: 0, fMax: 0 }] };
4537
stub(store, 'getState').returns(state);

0 commit comments

Comments
 (0)