Sha256: 752fc917522965ff95f89ef13ffb0e719824fe4b49eae7effb26520958614135

Contents?: true

Size: 548 Bytes

Versions: 9

Compression:

Stored size: 548 Bytes

Contents

import { React, Snapshot, getScreenInstance } from 'hippo/testing/index';
import <%= class_name %> from '<%= identifier %>/screens/<%= screen_id %>';

const screenInstance = getScreenInstance('<%= screen_id %>');

describe('Screen <%= class_name %>', () => {
    it('renders and matches snapshot', () => {
        const screen = shallow(<<%= class_name %> screen={screenInstance} />);
        expect(screen).toHaveRendered('<%= class_name %>');
        expect(Snapshot(<<%= class_name %> screen={screenInstance} />)).toMatchSnapshot();
    });
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hippo-fw-0.9.9 templates/spec/client/screen.spec.jsx
hippo-fw-0.9.8 templates/spec/client/screen.spec.jsx
hippo-fw-0.9.7 templates/spec/client/screen.spec.jsx
hippo-fw-0.9.6 templates/spec/client/screen.spec.jsx
hippo-fw-0.9.5 templates/spec/client/screen.spec.jsx
hippo-fw-0.9.4 templates/spec/client/screen.spec.jsx
hippo-fw-0.9.3 templates/spec/client/screen.spec.jsx
hippo-fw-0.9.2 templates/spec/client/screen.spec.jsx
hippo-fw-0.9.1 templates/spec/client/screen.spec.jsx