File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
integrationTests/dev-node-explicit Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " graphql-js-test-dev-node-explicit" ,
3
- "description" : " Node.js explicit development mode integration test" ,
4
- "version" : " 1.0.0" ,
2
+ "description" : " explicit graphql-js development mode should work with node" ,
5
3
"private" : true ,
6
4
"type" : " module" ,
7
5
"scripts" : {
Original file line number Diff line number Diff line change 1
- import assert from 'assert' ;
2
1
import { isObjectType } from 'graphql' ;
3
2
4
3
class GraphQLObjectType {
@@ -9,10 +8,12 @@ class GraphQLObjectType {
9
8
10
9
try {
11
10
isObjectType ( new GraphQLObjectType ( ) ) ;
12
- assert . fail ( 'Expected isObjectType to throw an error in Node.js explicit development mode.' ) ;
11
+ throw new Error (
12
+ 'Expected isObjectType to throw an error in Node.js explicit development mode.' ,
13
+ ) ;
13
14
} catch ( error ) {
14
- assert . ok (
15
- error . message . includes ( 'multiple' ) || error . message . includes ( 'GraphQL ') ,
16
- `Expected error message to include 'multiple' or 'GraphQL' , but got: "${ error . message } "`
15
+ if (
16
+ ! error . message . includes ( 'from another module or realm ' ) ,
17
+ `Expected error message to include 'from another module or realm' , but got: "${ error . message } "` ,
17
18
) ;
18
19
}
You can’t perform that action at this time.
0 commit comments