We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49ff22c commit b2a9b61Copy full SHA for b2a9b61
integrationTests/dev-node-implicit/test.js
@@ -2,16 +2,14 @@ import assert from 'node:assert';
2
3
import { isObjectType } from 'graphql';
4
5
-class FakeGraphQLObjectType {
6
- constructor() {
7
- this.name = 'Fake';
+class GraphQLObjectType {
+ get [Symbol.toStringTag]() {
+ return 'GraphQLObjectType';
8
}
9
10
11
-const fakeInstance = new FakeGraphQLObjectType();
12
-
13
try {
14
- isObjectType(fakeInstance);
+ isObjectType(new GraphQLObjectType());
15
assert.fail(
16
'Expected isObjectType to throw an error in Node.js implicit development mode.',
17
);
0 commit comments