Skip to content

Commit c4bb241

Browse files
authored
fix: reduce log level of cookie test (#394)
* fix: reduce log level of cookie test * fix: remove file * fix: test thats failing
1 parent 797745d commit c4bb241

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/base-cookie.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const areCookiesEnabled = (opts = {}) => {
104104
} catch (e) {
105105
utils.log.warn(`Error thrown when checking for cookies. Reason: "${e}"`);
106106
} finally {
107-
utils.log.warn(`Cleaning up cookies availability test`);
107+
utils.log.info(`Cleaning up cookies availability test`);
108108
set(cookieName, null, opts);
109109
}
110110
return _areCookiesEnabled;

test/base-cookie.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe('cookie', function () {
9393

9494
describe('when error is thrown during check', () => {
9595
it('should cleanup cookies', () => {
96-
const stubLogInfo = sinon.stub(utils.log, 'info').throws('Stubbed Exception');
96+
const stubLogInfo = sinon.stub(utils.log, 'info').onFirstCall().throws('Stubbed Exception');
9797
const spyLogWarning = sinon.spy(utils.log, 'warn');
9898
const cookieName = Constants.COOKIE_TEST_PREFIX + base64Id();
9999
const res = cookie.areCookiesEnabled();

0 commit comments

Comments
 (0)