yarn add -D enzyme enzyme-adapter-react-16 jest react-test-renderer @types/enzyme @types/jest
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
| module.exports = { | |
| env: { | |
| browser: true, | |
| es6: true, | |
| jest: true, | |
| }, | |
| extends: [ | |
| 'react-app', | |
| 'airbnb', | |
| 'plugin:@typescript-eslint/recommended', |
[alias]
st = status
co = commit
logone = log --oneline
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
ck = checkout
copy = checkout -b
br = branch
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
| var marcados = 0; | |
| var verifyCheckeds = function($checks) { | |
| if( marcados >= 2 ) { | |
| loop($checks, function($element) { | |
| $element.disabled = $element.checked ? '' : 'disabled'; | |
| }); | |
| } else { | |
| loop($checks, function($element) { | |
| $element.disabled = ''; |
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
| export const Types = { | |
| GET_REQUEST: 'ride/GET_REQUEST', | |
| GET_SUCCESS: 'ride/GET_SUCCESS', | |
| }; | |
| const INITIAL_STATE = { | |
| data: null, | |
| }; | |
| export default function rideDetails(state = INITIAL_STATE, action) { |
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
| console.log(''); |
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
| <provider | |
| android:name="android.support.v4.content.FileProvider" | |
| android:authorities="com.appfidelizaclientes.provider" | |
| android:grantUriPermissions="true" | |
| android:exported="false"> | |
| <meta-data | |
| android:name="android.support.FILE_PROVIDER_PATHS" | |
| android:resource="@xml/filepaths" /> | |
| </provider> |
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
| . |
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
| { | |
| "gitlens.advanced.messages": { | |
| "suppressShowKeyBindingsNotice": true | |
| }, | |
| "diffEditor.ignoreTrimWhitespace": false, | |
| "window.zoomLevel": 0, | |
| "git.path": "user/bin/git", | |
| "eslint.autoFixOnSave": true, | |
| "eslint.alwaysShowStatus": true, | |
| "editor.formatOnSave": true, |