Last active
February 21, 2019 22:04
-
-
Save Dman757/a11f786c2c35d7a01f6f74a83d3c683d to your computer and use it in GitHub Desktop.
RAKE + FACE DOT JPEG
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
account.update = (model = {}, formName = '') => async ( | |
dispatch, | |
) => {return} // BAD (having the arguments on a newline | |
/* | |
/home/dman/src/...:602 | |
const response = await _Account2.default.update(model); | |
^^^^^ | |
SyntaxError: await is only valid in async function | |
at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:305:17) | |
at Object.<anonymous> (src/actions/index.js:6:16) | |
at Object.<anonymous> (src/....js:7:16) | |
*/ | |
account.update = (model = {}, formName = '') => async dispatch => {return} // GOOD tests pass with arguemtns on one line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment