This file contains hidden or 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
| import React from 'react'; | |
| import App from './App'; | |
| import renderer from 'react-test-renderer'; | |
| import Adapter from 'enzyme-adapter-react-16' | |
| import { shallow, configure } from 'enzyme'; | |
| configure({ adapter: new Adapter() }); | |
| it('renders without crashing', () => { |
This file contains hidden or 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
| import React from 'react'; | |
| import { StyleSheet, Text, View, Button } from 'react-native'; | |
| export default class App extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = {text: 'Hello World'}; | |
| } |
This file contains hidden or 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
| import React from 'react'; | |
| import { StyleSheet, Text, View, Button } from 'react-native'; | |
| export default class App extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| } | |
| render() { |
This file contains hidden or 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
| import React from 'react'; | |
| import App from './App'; | |
| import renderer from 'react-test-renderer'; | |
| import Adapter from 'enzyme-adapter-react-16' | |
| import { shallow, configure } from 'enzyme'; | |
| configure({ adapter: new Adapter() }); | |
| it('renders without crashing', () => { |
This file contains hidden or 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
| import React from 'react'; | |
| import App from './App'; | |
| import renderer from 'react-test-renderer'; | |
| import Adapter from 'enzyme-adapter-react-16' | |
| import { shallow, configure } from 'enzyme'; | |
| configure({ adapter: new Adapter() }); | |
| it('renders without crashing', () => { |
This file contains hidden or 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
| import React from 'react'; | |
| import { StyleSheet, Text, View, Button, TextInput } from 'react-native'; | |
| export default class App extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| } | |
| render() { |
This file contains hidden or 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
| import React from 'react'; | |
| import App from './App'; | |
| import renderer from 'react-test-renderer'; | |
| import Adapter from 'enzyme-adapter-react-16' | |
| import { shallow, configure } from 'enzyme'; | |
| configure({ adapter: new Adapter() }); | |
| it('renders without crashing', () => { |
This file contains hidden or 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
| import React from 'react'; | |
| import { StyleSheet, Text, View, Button, TextInput } from 'react-native'; | |
| export default class App extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| } | |
| render() { |
This file contains hidden or 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
| // js code: | |
| const id = 'irrelevant' | |
| const character = getCharacterBy(id); | |
| character.run(); |
This file contains hidden or 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
| // ts code: | |
| const id: characterId = 'irrelevant'; | |
| const character: Hero = getCharacterBy(id); | |
| // character.run(); -> Heros never run. | |
| character.saveTheDay(); |