mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
17 lines
506 B
TypeScript
17 lines
506 B
TypeScript
import {render} from 'sentry-test/reactTestingLibrary';
|
|
|
|
import {setActiveProject} from 'sentry/actionCreators/projects';
|
|
import OrganizationRoot from 'sentry/views/organizationRoot';
|
|
|
|
jest.mock('sentry/actionCreators/projects', () => ({
|
|
setActiveProject: jest.fn(),
|
|
}));
|
|
|
|
describe('OrganizationRoot', function () {
|
|
it('sets active project as null when mounted', function () {
|
|
render(<OrganizationRoot>{null}</OrganizationRoot>);
|
|
|
|
expect(setActiveProject).toHaveBeenCalledWith(null);
|
|
});
|
|
});
|