AAfghahi commented on a change in pull request #14381:
URL: https://github.com/apache/superset/pull/14381#discussion_r626853596



##########
File path: superset-frontend/spec/javascripts/sqllab/QueryTable_spec.jsx
##########
@@ -35,12 +39,17 @@ describe('QueryTable', () => {
     expect(React.isValidElement(<QueryTable {...mockedProps} />)).toBe(true);
   });
   it('renders a proper table', () => {
-    const wrapper = shallow(<QueryTable {...mockedProps} />);
-    const tableWrapper = wrapper
-      .find(TableView)
-      .shallow()
-      .find(TableCollection)
-      .shallow();
+    const mockStore = configureStore([thunk]);
+    const store = mockStore({});
+    const spyOnUseSelector = jest.spyOn(redux, 'useSelector');

Review comment:
       Ok, I added it to the store, and added user as a fixture. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to