import React from 'react'; import {shallow} from 'sentry-test/enzyme'; import ProjectChooser from 'app/views/projectChooser'; describe('ProjectChooser', function() { const mockOrg = { id: 'org', slug: 'org', teams: [ { name: 'Test Team', slug: 'test-team', isMember: true, projects: [ { slug: 'test-project', name: 'Test Project', }, { slug: 'another-project', name: 'Another Project', }, ], }, ], projects: [ { slug: 'test-project', name: 'Test Project', isMember: true, team: { name: 'Test Team', slug: 'test-team', isMember: true, projects: [ { slug: 'test-project', name: 'Test Project', }, { slug: 'another-project', name: 'Another Project', }, ], }, }, { slug: 'another-project', name: 'Another Project', isMember: true, team: { name: 'Test Team', slug: 'test-team', isMember: true, projects: [ { slug: 'test-project', name: 'Test Project', }, { slug: 'another-project', name: 'Another Project', }, ], }, }, ], access: [], }; it('renders', function() { const wrapper = shallow( , { context: { organization: mockOrg, }, } ); expect(wrapper).toMatchSnapshot(); }); });