{"size": 715, "ext": "js", "max_stars_repo_path": "test/ActivityScene.test.js", "max_stars_repo_name": "castwide/react-gamefic", "max_stars_repo_stars_event_min_datetime": "2020-03-31T08:35:43.000Z", "max_stars_repo_stars_event_max_datetime": "2020-03-31T08:35:43.000Z", "max_issues_repo_path": "test/ActivityScene.test.js", "max_issues_repo_name": "castwide/react-gamefic", "max_issues_repo_issues_event_min_datetime": "2020-08-27T13:11:45.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-29T20:17:02.000Z", "max_forks_repo_path": "test/ActivityScene.test.js", "max_forks_repo_name": "castwide/react-gamefic", "max_forks_repo_forks_event_min_datetime": "2022-01-07T22:36:49.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-07T22:36:49.000Z"}
{"max_stars_count": 1, "max_issues_count": 12, "max_forks_count": 1, "avg_line_length": 31.0869565217, "max_line_length": 68, "alphanum_fraction": 0.620979021}
import React from 'react';
import { configure, shallow } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';

import { ActivityScene } from '../src/ActivityScene';
import { Output } from '../src/Output';
import { CommandForm } from '../src/CommandForm';

configure({ adapter: new Adapter() });

describe('<ActivityScene />', () => {
    it('renders output and form', () => {
        let scene = shallow(<ActivityScene />);
        expect(scene.find(Output).length).toBe(1);
        expect(scene.find(CommandForm).length).toBe(1);
    });

    it('renders children', () => {
        let scene = shallow(<ActivityScene><img /></ActivityScene>);
        expect(scene.find('img').length).toBe(1);
    });
});
