-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* test setup * adds first test * fixes Linking error with react-native-router-flux facebook/react-native#11585 * move folders
- Loading branch information
Showing
4 changed files
with
336 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react'; | ||
import List from '../List'; | ||
import { shallow } from 'enzyme'; | ||
|
||
const dummyVendor = { | ||
vndrName: 'fake', | ||
description: 'even faker', | ||
distance: 2, | ||
} | ||
|
||
it('renders without crashing', () => { | ||
const wrapper = shallow (<List vendor={dummyVendor} />); | ||
expect(wrapper).toExist; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
jest.mock('Linking', () => { | ||
return { | ||
addEventListener: jest.fn(), | ||
removeEventListener: jest.fn(), | ||
openURL: jest.fn(), | ||
canOpenURL: jest.fn(), | ||
getInitialURL: jest.fn(), | ||
} | ||
}) |
Oops, something went wrong.