Skip to content

Commit 42e37a7

Browse files
committed
Updated with a fresh build of react-native
* Using [email protected] * Installed the react-native-vector-icons using react-native link
1 parent 11b496b commit 42e37a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+4938
-497
lines changed

__mocks__/redux-mock-store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import configureMockStore from 'redux-mock-store';
2-
import { initialState as reduxInitialState } from 'ReactNativeTutorial/app/reducers';
2+
import { initialState as reduxInitialState } from 'ReactRailsApp/app/reducers';
33

44
import mockThunkMiddleware from './mockThunkMiddleware';
55

__tests__/bundles/comments/components/Add.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import Add from 'ReactNativeTutorial/app/bundles/comments/components/Add/Add';
2+
import Add from 'ReactRailsApp/app/bundles/comments/components/Add/Add';
33

44
import renderer from 'react-test-renderer';
55

__tests__/bundles/comments/components/Index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import Index from 'ReactNativeTutorial/app/bundles/comments/components/Index/Index';
2+
import Index from 'ReactRailsApp/app/bundles/comments/components/Index/Index';
33

44
import renderer from 'react-test-renderer';
55

__tests__/bundles/comments/hocs/withAddProps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import withAddProps from 'ReactNativeTutorial/app/bundles/comments/hocs/withAddProps';
2+
import withAddProps from 'ReactRailsApp/app/bundles/comments/hocs/withAddProps';
33
import Mock from 'mock';
44
import renderer from 'react-test-renderer';
55
import {createStoreFromState, initialState} from 'redux-mock-store';

__tests__/bundles/comments/hocs/withIndexProps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import withIndexProps from 'ReactNativeTutorial/app/bundles/comments/hocs/withIndexProps';
2+
import withIndexProps from 'ReactRailsApp/app/bundles/comments/hocs/withIndexProps';
33
import Mock from 'mock';
44
import renderer from 'react-test-renderer';
55
import { createStoreFromState, initialState } from 'redux-mock-store';

__tests__/bundles/comments/thunks/createComment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { fromJS } from 'immutable';
22
import { createStoreFromState } from 'redux-mock-store';
33
import { mockCalls } from 'mockCall';
4-
import * as actions from 'ReactNativeTutorial/app/bundles/comments/thunks';
4+
import * as actions from 'ReactRailsApp/app/bundles/comments/thunks';
55

66
describe('createComment', () => {
77
it('creates a comment in the store and sends request to api', async() => {

__tests__/bundles/comments/thunks/fetch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import createDefaultStore from 'redux-mock-store';
22
import { mockCalls, resetMockCalls } from 'mockCall';
3-
import * as actions from 'ReactNativeTutorial/app/bundles/comments/thunks';
3+
import * as actions from 'ReactRailsApp/app/bundles/comments/thunks';
44

55
describe('fetch', () => {
66
let store;

__tests__/bundles/common/hocs/withInitialAction.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import _ from 'lodash/fp';
3-
import withInitialAction from 'ReactNativeTutorial/app/bundles/common/hocs/withInitialAction';
3+
import withInitialAction from 'ReactRailsApp/app/bundles/common/hocs/withInitialAction';
44
import Mock from 'mock';
55
import renderer from 'react-test-renderer';
66

__tests__/index.android.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import 'react-native';
2+
import React from 'react';
3+
import Index from '../index.android.js';
4+
5+
// Note: test renderer must be required after react-native.
6+
import renderer from 'react-test-renderer';
7+
8+
it('renders correctly', () => {
9+
const tree = renderer.create(
10+
<Index />
11+
);
12+
});

__tests__/index.ios.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import 'react-native';
2+
import React from 'react';
3+
import Index from '../index.ios.js';
4+
5+
// Note: test renderer must be required after react-native.
6+
import renderer from 'react-test-renderer';
7+
8+
it('renders correctly', () => {
9+
const tree = renderer.create(
10+
<Index />
11+
);
12+
});

0 commit comments

Comments
 (0)