File tree 1 file changed +2
-2
lines changed
projects/testing-library/src/lib
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -318,12 +318,12 @@ class WrapperComponent {}
318
318
function replaceFindWithFindAndDetectChanges < T > ( container : HTMLElement , originalQueriesForContainer : T ) : T {
319
319
return Object . keys ( originalQueriesForContainer ) . reduce ( ( newQueries , key ) => {
320
320
if ( key . startsWith ( 'find' ) ) {
321
- const getByQuery = dtlQueries [ key . replace ( 'find' , 'get' ) ] ;
321
+ const getByQuery = originalQueriesForContainer [ key . replace ( 'find' , 'get' ) ] ;
322
322
newQueries [ key ] = async ( text , options , waitOptions ) => {
323
323
// original implementation at https://github.com/testing-library/dom-testing-library/blob/master/src/query-helpers.js
324
324
const result = await waitForWrapper (
325
325
detectChangesForMountedFixtures ,
326
- ( ) => getByQuery ( container , text , options ) ,
326
+ ( ) => getByQuery ( text , options ) ,
327
327
waitOptions ,
328
328
) ;
329
329
return result ;
You can’t perform that action at this time.
0 commit comments