Last active
February 21, 2019 22:04
-
-
Save Dman757/a11f786c2c35d7a01f6f74a83d3c683d to your computer and use it in GitHub Desktop.
Revisions
-
Dman757 revised this gist
Feb 21, 2019 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ 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); @@ -14,4 +14,4 @@ account.update = (model = {}, formName = '') => async ( */ account.update = (model = {}, formName = '') => async dispatch => {return} // GOOD tests pass with arguemtns on one line -
Dman757 created this gist
Feb 21, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ account.update = (model = {}, formName = '') => async ( dispatch, ) => {return} // BAD /* /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