import React from 'react';
import { mount } from 'enzyme';
import { MemoryRouter } from 'react-router-dom';
import OrganizationTeams from '../../../../../src/pages/Organizations/screens/Organization/OrganizationTeams';
const mockAPITeamsList = {
foo: 'bar',
};
const readOrganizationTeamsList = () => Promise.resolve(mockAPITeamsList);
describe('', () => {
test('initially renders succesfully', () => {
mount(
);
});
test('passed methods as props are called appropriately', async () => {
const wrapper = mount(
).find('OrganizationTeams');
const teamsList = await wrapper.instance().readOrganizationTeamsList();
expect(teamsList).toEqual(mockAPITeamsList);
});
});