Skip to content

Commit 1c2cee6

Browse files
JoviDeCroockbenjie
andauthored
Update union-interface-test.ts
Co-authored-by: Benjie <[email protected]>
1 parent 7158830 commit 1c2cee6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/execution/__tests__/union-interface-test.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,14 @@ const TypeA = new GraphQLObjectType({
168168
id: { type: GraphQLString },
169169
nameA: { type: GraphQLString },
170170
}),
171-
isTypeOf: (_value, _context, _info) => {
172-
return new Promise((_resolve, reject) => {
173-
setTimeout(() => {
174-
reject(new Error('TypeA_isTypeOf_rejected'));
175-
}, 10);
176-
});
171+
isTypeOf: (_value, _context, _info) =>
172+
new Promise(
173+
(_resolve, reject) =>
174+
void setTimeout(
175+
() => void reject(new Error("TypeA_isTypeOf_rejected")),
176+
10,
177+
),
178+
),
177179
},
178180
});
179181

0 commit comments

Comments
 (0)