Skip to content

Commit 7a68650

Browse files
committed
chore: Cleanup listeners after each test
1 parent e34b1aa commit 7a68650

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ describe('gulplog', function () {
1010
done();
1111
});
1212

13+
afterEach(function (done) {
14+
logger.removeAllListeners();
15+
done();
16+
});
17+
1318
it('should emit the appropriate event when debug/info/warn/error methods are called', function (done) {
1419
var called = { debug: 0, info: 0, warn: 0, error: 0 };
1520
function allDone() {

0 commit comments

Comments
 (0)