mirror of
https://github.com/apache/superset.git
synced 2026-04-18 07:35:09 +00:00
[superset-client] replace misc ajax calls (#6135)
* [superset-client][misc] replace ajax calls in DashboardTable, TableLoader, utils, common * [superset-client][misc] replace ajax calls in AsyncSelect, HeaderActions, Deck.gl * [superset-client][misc] fix tests * [superset-client] remove unneeded functional setState calls * [superset-client] make welcome a redux app for toasts * [superset-client] make Profile a redux app for toasts * [superset-client] TableLoader don't pass toast props to dom nodes * tweak deckgl Multi syntax
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
import React from 'react';
|
||||
import { mount } from 'enzyme';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import { user } from './fixtures';
|
||||
import RecentActivity from '../../../src/profile/components/RecentActivity';
|
||||
import TableLoader from '../../../src/components/TableLoader';
|
||||
|
||||
|
||||
describe('RecentActivity', () => {
|
||||
const mockedProps = {
|
||||
user,
|
||||
@@ -15,8 +14,9 @@ describe('RecentActivity', () => {
|
||||
React.isValidElement(<RecentActivity {...mockedProps} />),
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
it('renders a TableLoader', () => {
|
||||
const wrapper = mount(<RecentActivity {...mockedProps} />);
|
||||
const wrapper = shallow(<RecentActivity {...mockedProps} />);
|
||||
expect(wrapper.find(TableLoader)).toHaveLength(1);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user