Skip to content

Commit cce59e9

Browse files
Explicitly create Promise using "Promise.resolve" (#1885)
1 parent 41742d4 commit cce59e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/execution/__tests__/sync-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ describe('Execute: synchronously when possible', () => {
2828
},
2929
asyncField: {
3030
type: GraphQLString,
31-
async resolve(rootValue) {
32-
return rootValue;
31+
resolve(rootValue) {
32+
return Promise.resolve(rootValue);
3333
},
3434
},
3535
},

0 commit comments

Comments
 (0)