@@ -28,20 +28,36 @@ test(
2828 } ) ( ) ;
2929
3030 const consoleMessages = getBrowserConsoleMessages ( ) ;
31- const columnNumber = 12 ;
31+ const column = 12 ;
32+ const columnNumber = column ;
3233 const url = '' ;
3334
3435 const consoleMessagesWithoutDate = consoleMessages . map (
3536 ( { dateTimeInIso : _ , ...messageWithoutDate } ) => messageWithoutDate ,
3637 ) ;
3738
3839 await expect ( consoleMessagesWithoutDate , 'getBrowserConsoleMessages read all of messages' ) . eql ( [
39- { args : [ 'error' ] , location : { columnNumber, lineNumber : 3 , url} , text : 'error' , type : 'error' } ,
40- { args : [ 'info' ] , location : { columnNumber, lineNumber : 4 , url} , text : 'info' , type : 'info' } ,
41- { args : [ 'log' ] , location : { columnNumber, lineNumber : 5 , url} , text : 'log' , type : 'log' } ,
40+ {
41+ args : [ 'error' ] ,
42+ location : { column, columnNumber, line : 3 , lineNumber : 3 , url} ,
43+ text : 'error' ,
44+ type : 'error' ,
45+ } ,
46+ {
47+ args : [ 'info' ] ,
48+ location : { column, columnNumber, line : 4 , lineNumber : 4 , url} ,
49+ text : 'info' ,
50+ type : 'info' ,
51+ } ,
52+ {
53+ args : [ 'log' ] ,
54+ location : { column, columnNumber, line : 5 , lineNumber : 5 , url} ,
55+ text : 'log' ,
56+ type : 'log' ,
57+ } ,
4258 {
4359 args : [ 'warning' ] ,
44- location : { columnNumber, lineNumber : 6 , url} ,
60+ location : { column , columnNumber, line : 6 , lineNumber : 6 , url} ,
4561 text : 'warning' ,
4662 type : 'warning' ,
4763 } ,
0 commit comments