@@ -37,13 +37,13 @@ describe('useLog', () => {
3737 expect ( result . current . log ) . toBeTruthy ( )
3838
3939 renderHook ( ( ) => result . current . log ( 'Test' ) )
40- expect ( consoleLog ) . toBeCalledWith ( ' On mount : Test' )
40+ expect ( consoleLog ) . toBeCalledWith ( ' On Mount : Test' )
4141 expect ( consoleLog ) . toBeCalledWith (
42- 'Previous value : %cTest' ,
42+ 'Previous Value : %cTest' ,
4343 'color: SlateGray; font-weight: thin;' ,
4444 )
4545 expect ( consoleLog ) . toBeCalledWith (
46- ' Current value : %cTest' ,
46+ ' Current Value : %cTest' ,
4747 'color: green; font-weight: bold;' ,
4848 )
4949 expect ( consoleLog ) . toBeCalledTimes ( 3 )
@@ -77,19 +77,19 @@ describe('useLog', () => {
7777 'color: DodgerBlue' ,
7878 'color: SlateGray; font-weight: thin;' ,
7979 )
80- expect ( consoleLog ) . toBeCalledWith ( ' On mount : null' )
80+ expect ( consoleLog ) . toBeCalledWith ( ' On Mount : null' )
8181
8282 expect ( consoleGroup ) . toBeCalledWith (
8383 'Change in %c<TestComponent /> %c@ 09:38 PM' ,
8484 'color: DodgerBlue' ,
8585 'color: SlateGray; font-weight: thin;' ,
8686 )
8787 expect ( consoleLog ) . toBeCalledWith (
88- 'Previous value : %cnull' ,
88+ 'Previous Value : %cnull' ,
8989 'color: SlateGray; font-weight: thin;' ,
9090 )
9191 expect ( consoleLog ) . toBeCalledWith (
92- ' Current value : %cnull' ,
92+ ' Current Value : %cnull' ,
9393 'color: green; font-weight: bold;' ,
9494 )
9595 expect ( consoleGroup ) . toBeCalledWith (
@@ -98,11 +98,11 @@ describe('useLog', () => {
9898 'color: SlateGray; font-weight: thin;' ,
9999 )
100100 expect ( consoleLog ) . toBeCalledWith (
101- 'Previous value : %cnull' ,
101+ 'Previous Value : %cnull' ,
102102 'color: SlateGray; font-weight: thin;' ,
103103 )
104104 expect ( consoleLog ) . toBeCalledWith (
105- ' Current value : %cnull' ,
105+ ' Current Value : %cnull' ,
106106 'color: green; font-weight: bold;' ,
107107 )
108108 expect ( consoleLog ) . toBeCalledTimes ( 5 )
@@ -121,11 +121,11 @@ describe('useLog', () => {
121121 'color: SlateGray; font-weight: thin;' ,
122122 )
123123 expect ( consoleLog ) . toBeCalledWith (
124- 'Previous value : %cnull' ,
124+ 'Previous Value : %cnull' ,
125125 'color: SlateGray; font-weight: thin;' ,
126126 )
127127 expect ( consoleLog ) . toBeCalledWith (
128- ' Current value : %conChange 1s' ,
128+ ' Current Value : %conChange 1s' ,
129129 'color: green; font-weight: bold;' ,
130130 )
131131 expect ( consoleLog ) . toBeCalledTimes ( 7 )
@@ -144,11 +144,11 @@ describe('useLog', () => {
144144 'color: SlateGray; font-weight: thin;' ,
145145 )
146146 expect ( consoleLog ) . toBeCalledWith (
147- 'Previous value : %conChange 1s' ,
147+ 'Previous Value : %conChange 1s' ,
148148 'color: SlateGray; font-weight: thin;' ,
149149 )
150150 expect ( consoleLog ) . toBeCalledWith (
151- ' Current value : %conChange 2s' ,
151+ ' Current Value : %conChange 2s' ,
152152 'color: green; font-weight: bold;' ,
153153 )
154154 expect ( consoleLog ) . toBeCalledTimes ( 9 )
@@ -166,11 +166,11 @@ describe('useLog', () => {
166166 'color: SlateGray; font-weight: thin;' ,
167167 )
168168 expect ( consoleLog ) . toBeCalledWith (
169- 'Previous value : %conChange 2s' ,
169+ 'Previous Value : %conChange 2s' ,
170170 'color: SlateGray; font-weight: thin;' ,
171171 )
172172 expect ( consoleLog ) . toBeCalledWith (
173- ' Current value : %cnull' ,
173+ ' Current Value : %cnull' ,
174174 'color: green; font-weight: bold;' ,
175175 )
176176 expect ( consoleLog ) . toBeCalledTimes ( 11 )
0 commit comments