File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
packages/angular-query-experimental/src/__tests__ Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -58,10 +58,12 @@ describe('injectQueries', () => {
5858 ] ,
5959 } ) )
6060
61- _ = effect ( ( ) => {
62- const snapshot = this . result ( ) . map ( ( q ) => ( { data : q . data ( ) } ) )
63- results . push ( snapshot )
64- } )
61+ constructor ( ) {
62+ effect ( ( ) => {
63+ const snapshot = this . result ( ) . map ( ( q ) => ( { data : q . data ( ) } ) )
64+ results . push ( snapshot )
65+ } )
66+ }
6567 }
6668
6769 const rendered = await render ( Page , {
@@ -111,9 +113,11 @@ describe('injectQueries', () => {
111113 } ) ,
112114 } ) )
113115
114- _ = effect ( ( ) => {
115- results . push ( { ...this . combined ( ) } )
116- } )
116+ constructor ( ) {
117+ effect ( ( ) => {
118+ results . push ( { ...this . combined ( ) } )
119+ } )
120+ }
117121 }
118122
119123 const rendered = await render ( Page , {
You can’t perform that action at this time.
0 commit comments