Skip to content

Commit b2a9b61

Browse files
committed
f
1 parent 49ff22c commit b2a9b61

File tree

1 file changed

+4
-6
lines changed
  • integrationTests/dev-node-implicit

1 file changed

+4
-6
lines changed

integrationTests/dev-node-implicit/test.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ import assert from 'node:assert';
22

33
import { isObjectType } from 'graphql';
44

5-
class FakeGraphQLObjectType {
6-
constructor() {
7-
this.name = 'Fake';
5+
class GraphQLObjectType {
6+
get [Symbol.toStringTag]() {
7+
return 'GraphQLObjectType';
88
}
99
}
1010

11-
const fakeInstance = new FakeGraphQLObjectType();
12-
1311
try {
14-
isObjectType(fakeInstance);
12+
isObjectType(new GraphQLObjectType());
1513
assert.fail(
1614
'Expected isObjectType to throw an error in Node.js implicit development mode.',
1715
);

0 commit comments

Comments
 (0)