mirror of
https://github.com/apache/superset.git
synced 2026-04-09 03:16:07 +00:00
* [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
23 lines
608 B
JavaScript
23 lines
608 B
JavaScript
import React from 'react';
|
|
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,
|
|
};
|
|
it('is valid', () => {
|
|
expect(
|
|
React.isValidElement(<RecentActivity {...mockedProps} />),
|
|
).toBe(true);
|
|
});
|
|
|
|
it('renders a TableLoader', () => {
|
|
const wrapper = shallow(<RecentActivity {...mockedProps} />);
|
|
expect(wrapper.find(TableLoader)).toHaveLength(1);
|
|
});
|
|
});
|