-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from fga-eps-mds/dev
Merge dev in master
- Loading branch information
Showing
40 changed files
with
1,718 additions
and
326 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
.env* | ||
*.env | ||
Config.js | ||
mobile/app.json | ||
|
||
# Xcode | ||
!**/*.xcodeproj | ||
|
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 was deleted.
Oops, something went wrong.
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
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
14 changes: 14 additions & 0 deletions
14
mobile/screens/tab_navigator/indica_ai/__tests__/ButtonWithIcon.test.js
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 Adapter from 'enzyme-adapter-react-16'; | ||
import {shallow} from 'enzyme'; | ||
import Enzyme from 'enzyme'; | ||
import renderer from 'react-test-renderer'; | ||
|
||
import ButtonWithIcon from '../components/ButtonWithIcon'; | ||
|
||
Enzyme.configure({adapter: new Adapter()}); | ||
|
||
it('renders correctly', () => { | ||
const tree = renderer.create(<ButtonWithIcon />).toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); |
14 changes: 14 additions & 0 deletions
14
mobile/screens/tab_navigator/indica_ai/__tests__/DirectionModal.test.js
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 Adapter from 'enzyme-adapter-react-16'; | ||
import {shallow} from 'enzyme'; | ||
import Enzyme from 'enzyme'; | ||
import renderer from 'react-test-renderer'; | ||
|
||
import DirectionModal from '../components/DirectionModal'; | ||
|
||
Enzyme.configure({adapter: new Adapter()}); | ||
|
||
it('renders correctly', () => { | ||
const tree = renderer.create(<DirectionModal />).toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); |
14 changes: 14 additions & 0 deletions
14
mobile/screens/tab_navigator/indica_ai/__tests__/ErrorModal.test.js
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 Adapter from 'enzyme-adapter-react-16'; | ||
import {shallow} from 'enzyme'; | ||
import Enzyme from 'enzyme'; | ||
import renderer from 'react-test-renderer'; | ||
|
||
import ErrorModal from '../components/ErrorModal'; | ||
|
||
Enzyme.configure({adapter: new Adapter()}); | ||
|
||
it('renders correctly', () => { | ||
const tree = renderer.create(<ErrorModal />).toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); |
14 changes: 14 additions & 0 deletions
14
mobile/screens/tab_navigator/indica_ai/__tests__/FavoriteIcon.test.js
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 Adapter from 'enzyme-adapter-react-16'; | ||
import {shallow} from 'enzyme'; | ||
import Enzyme from 'enzyme'; | ||
import renderer from 'react-test-renderer'; | ||
|
||
import FavoriteIcon from '../components/FavoriteIcon'; | ||
|
||
Enzyme.configure({adapter: new Adapter()}); | ||
|
||
it('renders correctly', () => { | ||
const tree = renderer.create(<FavoriteIcon />).toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); |
14 changes: 14 additions & 0 deletions
14
mobile/screens/tab_navigator/indica_ai/__tests__/IconMessage.test.js
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 Adapter from 'enzyme-adapter-react-16'; | ||
import {shallow} from 'enzyme'; | ||
import Enzyme from 'enzyme'; | ||
import renderer from 'react-test-renderer'; | ||
|
||
import IconMessage from '../components/IconMessage'; | ||
|
||
Enzyme.configure({adapter: new Adapter()}); | ||
|
||
it('renders correctly', () => { | ||
const tree = renderer.create(<IconMessage />).toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); |
14 changes: 14 additions & 0 deletions
14
mobile/screens/tab_navigator/indica_ai/__tests__/ImageModal.test.js
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 Adapter from 'enzyme-adapter-react-16'; | ||
import {shallow} from 'enzyme'; | ||
import Enzyme from 'enzyme'; | ||
import renderer from 'react-test-renderer'; | ||
|
||
import ImageModal from '../components/ImageModal'; | ||
|
||
Enzyme.configure({adapter: new Adapter()}); | ||
|
||
it('renders correctly', () => { | ||
const tree = renderer.create(<ImageModal />).toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); |
28 changes: 28 additions & 0 deletions
28
mobile/screens/tab_navigator/indica_ai/__tests__/SearchBar.test.js
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,28 @@ | ||
import React from 'react'; | ||
import { shallow } from 'enzyme'; | ||
import Enzyme from 'enzyme'; | ||
import Adapter from 'enzyme-adapter-react-16'; | ||
|
||
import SearchBar from '../screens/search_local/SearchScreen'; | ||
import ButtonWithIcon from '../components/ButtonWithIcon'; | ||
import InputWithButton from '../components/InputWithButton.js'; | ||
import renderer from 'react-test-renderer'; | ||
|
||
|
||
Enzyme.configure({adapter: new Adapter()}); | ||
|
||
describe('Test SearchScreen action', () => { | ||
|
||
it("Test search locals by name was success", () => { | ||
const url = 'https://indicaai.herokuapp.com/locals/name/${name}'; | ||
const name = 'fgaTest'; | ||
|
||
expect(name.length).toBeGreaterThan(0); | ||
}) | ||
|
||
it ("Test searchAction", () => { | ||
const url = 'https://indicaai.herokuapp.com/locals/name/${"test"}'; | ||
|
||
expect([1,2]).toEqual([1,2]); | ||
}) | ||
}); |
14 changes: 14 additions & 0 deletions
14
mobile/screens/tab_navigator/indica_ai/__tests__/SuccessModal.test.js
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 Adapter from 'enzyme-adapter-react-16'; | ||
import {shallow} from 'enzyme'; | ||
import Enzyme from 'enzyme'; | ||
import renderer from 'react-test-renderer'; | ||
|
||
import SuccessModal from '../components/SuccessModal'; | ||
|
||
Enzyme.configure({adapter: new Adapter()}); | ||
|
||
it('renders correctly', () => { | ||
const tree = renderer.create(<SuccessModal />).toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); |
14 changes: 14 additions & 0 deletions
14
mobile/screens/tab_navigator/indica_ai/__tests__/WarningModal.test.js
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 Adapter from 'enzyme-adapter-react-16'; | ||
import {shallow} from 'enzyme'; | ||
import Enzyme from 'enzyme'; | ||
import renderer from 'react-test-renderer'; | ||
|
||
import WarningModal from '../components/WarningModal'; | ||
|
||
Enzyme.configure({adapter: new Adapter()}); | ||
|
||
it('renders correctly', () => { | ||
const tree = renderer.create(<WarningModal />).toJSON(); | ||
expect(tree).toMatchSnapshot(); | ||
}); |
81 changes: 81 additions & 0 deletions
81
mobile/screens/tab_navigator/indica_ai/__tests__/__snapshots__/ButtonWithIcon.test.js.snap
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,81 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`renders correctly 1`] = ` | ||
<View | ||
accessibilityComponentType={undefined} | ||
accessibilityLabel={undefined} | ||
accessibilityTraits={undefined} | ||
accessible={true} | ||
collapsable={undefined} | ||
hasTVPreferredFocus={undefined} | ||
hitSlop={undefined} | ||
isTVSelectable={true} | ||
nativeID={undefined} | ||
onLayout={undefined} | ||
onResponderGrant={[Function]} | ||
onResponderMove={[Function]} | ||
onResponderRelease={[Function]} | ||
onResponderTerminate={[Function]} | ||
onResponderTerminationRequest={[Function]} | ||
onStartShouldSetResponder={[Function]} | ||
style={ | ||
Object { | ||
"alignItems": "center", | ||
"alignSelf": "stretch", | ||
"backgroundColor": "#62B1F6", | ||
"borderBottomWidth": null, | ||
"borderColor": "#007aff", | ||
"borderLeftWidth": null, | ||
"borderRadius": 5, | ||
"borderRightWidth": null, | ||
"borderTopWidth": null, | ||
"borderWidth": undefined, | ||
"elevation": 2, | ||
"flexDirection": "row", | ||
"height": 45, | ||
"justifyContent": "center", | ||
"marginHorizontal": 10, | ||
"opacity": 1, | ||
"paddingBottom": 6, | ||
"paddingTop": 6, | ||
"shadowColor": undefined, | ||
"shadowOffset": undefined, | ||
"shadowOpacity": undefined, | ||
"shadowRadius": undefined, | ||
"top": 30, | ||
} | ||
} | ||
testID={undefined} | ||
tvParallaxProperties={undefined} | ||
> | ||
<Text | ||
accessible={true} | ||
allowFontScaling={true} | ||
ellipsizeMode="tail" | ||
/> | ||
<Text | ||
accessible={true} | ||
allowFontScaling={true} | ||
ellipsizeMode="tail" | ||
style={ | ||
Array [ | ||
Object { | ||
"backgroundColor": "transparent", | ||
"color": "#fff", | ||
"fontFamily": "System", | ||
"fontSize": 16.5, | ||
"marginLeft": 0, | ||
"marginRight": 0, | ||
"paddingLeft": 16, | ||
"paddingRight": 16, | ||
}, | ||
Object { | ||
"color": "white", | ||
}, | ||
] | ||
} | ||
uppercase={false} | ||
virtual={undefined} | ||
/> | ||
</View> | ||
`; |
Oops, something went wrong.