From ef62da9f14cfd87b9f1e6f87e8001d5679a5669a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Wed, 26 Apr 2017 12:21:59 +0200 Subject: [PATCH] test(reporters): Fix the log suppressing tests The tests ensuring a lower priority doesn't get logged were written in an incorrect format so even changing the order in the LOG_PRIORITIES array would not make them fail. --- test/unit/reporters/base.spec.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/unit/reporters/base.spec.js b/test/unit/reporters/base.spec.js index 2cb49372b..291e5f4f0 100644 --- a/test/unit/reporters/base.spec.js +++ b/test/unit/reporters/base.spec.js @@ -85,7 +85,8 @@ describe('reporter', function () { it('should not log if lower priority than browserConsoleLogOptions "error"', function () { var reporter = new m.BaseReporter(null, null, true, { - browserConsoleLogOptions: {level: 'error'} + level: 'error', + terminal: true }, adapter) var writeSpy = sinon.spy(reporter, 'writeCommonMsg') @@ -97,7 +98,8 @@ describe('reporter', function () { it('should not log if lower priority than browserConsoleLogOptions "warn"', function () { var reporter = new m.BaseReporter(null, null, true, { - browserConsoleLogOptions: {level: 'warn'} + level: 'warn', + terminal: true }, adapter) var writeSpy = sinon.spy(reporter, 'writeCommonMsg') @@ -109,7 +111,8 @@ describe('reporter', function () { it('should not log if lower priority than browserConsoleLogOptions "info"', function () { var reporter = new m.BaseReporter(null, null, true, { - browserConsoleLogOptions: {level: 'info'} + level: 'info', + terminal: true }, adapter) var writeSpy = sinon.spy(reporter, 'writeCommonMsg') @@ -121,7 +124,8 @@ describe('reporter', function () { it('should not log if lower priority than browserConsoleLogOptions "debug"', function () { var reporter = new m.BaseReporter(null, null, true, { - browserConsoleLogOptions: {level: 'debug'} + level: 'debug', + terminal: true }, adapter) var writeSpy = sinon.spy(reporter, 'writeCommonMsg')