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 = {}) => {
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 ;
Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments