File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ const areCookiesEnabled = (opts = {}) => {
104
104
} catch ( e ) {
105
105
utils . log . warn ( `Error thrown when checking for cookies. Reason: "${ e } "` ) ;
106
106
} finally {
107
- utils . log . warn ( `Cleaning up cookies availability test` ) ;
107
+ utils . log . info ( `Cleaning up cookies availability test` ) ;
108
108
set ( cookieName , null , opts ) ;
109
109
}
110
110
return _areCookiesEnabled ;
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ describe('cookie', function () {
93
93
94
94
describe ( 'when error is thrown during check' , ( ) => {
95
95
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' ) ;
97
97
const spyLogWarning = sinon . spy ( utils . log , 'warn' ) ;
98
98
const cookieName = Constants . COOKIE_TEST_PREFIX + base64Id ( ) ;
99
99
const res = cookie . areCookiesEnabled ( ) ;
You can’t perform that action at this time.
0 commit comments