Skip to content

Commit

Permalink
Explicitly create Promise using "Promise.resolve" (#1885)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 21, 2019
1 parent 41742d4 commit cce59e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/execution/__tests__/sync-test.js
Expand Up @@ -28,8 +28,8 @@ describe('Execute: synchronously when possible', () => {
},
asyncField: {
type: GraphQLString,
async resolve(rootValue) {
return rootValue;
resolve(rootValue) {
return Promise.resolve(rootValue);
},
},
},
Expand Down

0 comments on commit cce59e9

Please sign in to comment.