Skip to content

Commit

Permalink
test: fix broken test for graphql below v15
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Sep 21, 2020
1 parent 03b1d39 commit bf28343
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/__tests__/github_issues/287-test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/* @flow */

import { buildSchema, GraphQLSchema } from 'graphql';
import { SchemaComposer, dedent } from '../..';
import { SchemaComposer, dedent, graphqlVersion } from '../..';

describe('github issue #287: Can we merge schemas with overriding types in fields', () => {
it('merge two simple schemas', () => {
if (graphqlVersion < 15) return;

const schemaA = buildSchema(`
type Query {
field1: Int
Expand Down Expand Up @@ -43,6 +45,8 @@ describe('github issue #287: Can we merge schemas with overriding types in field
});

it('it merges field & arg types', () => {
if (graphqlVersion < 15) return;

const schemaA = buildSchema(`
# An object with an ID
interface Node {
Expand Down

0 comments on commit bf28343

Please sign in to comment.