Skip to content

Instantly share code, notes, and snippets.

@Dman757
Last active February 21, 2019 22:04
Show Gist options
  • Save Dman757/a11f786c2c35d7a01f6f74a83d3c683d to your computer and use it in GitHub Desktop.
Save Dman757/a11f786c2c35d7a01f6f74a83d3c683d to your computer and use it in GitHub Desktop.
RAKE + FACE DOT JPEG
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