mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 11:51:07 +08:00
24 lines
561 B
JavaScript
24 lines
561 B
JavaScript
// This is the default file as put down by RN
|
|
/* eslint-disable */
|
|
|
|
import 'react-native';
|
|
import React from 'react';
|
|
import Index from '../index.android.js';
|
|
|
|
jest.mock('global', () => ({
|
|
...global,
|
|
WebSocket: function WebSocket(){},
|
|
}));
|
|
|
|
jest.mock("Dimensions", () => ({
|
|
get: jest.fn().mockReturnValue({ width: 600, height:1800 }),
|
|
addEventListener: jest.fn(),
|
|
}))
|
|
|
|
// Note: test renderer must be required after react-native.
|
|
import renderer from 'react-test-renderer';
|
|
|
|
it('renders correctly', () => {
|
|
const tree = renderer.create(<Index />);
|
|
});
|