Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
fix(tests): v15 test failure
Browse files Browse the repository at this point in the history
using mapSchema rather than visitSchema changes print(schema) order
  • Loading branch information
yaacovCR committed Mar 22, 2020
1 parent ad6ef44 commit e7f901c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/testAlternateMergeSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,11 +575,7 @@ describe('filter and rename object fields', () => {

it('should filter', () => {
if (graphqlVersion() >= 15) {
expect(printSchema(transformedPropertySchema)).to.equal(`type Query {
propertyById(id: ID!): New_Property
}
type New_Property {
expect(printSchema(transformedPropertySchema)).to.equal(`type New_Property {
new_id: ID!
new_name: String!
new_location: New_Location
Expand All @@ -589,6 +585,10 @@ type New_Property {
type New_Location {
name: String!
}
type Query {
propertyById(id: ID!): New_Property
}
`);
} else {
expect(printSchema(transformedPropertySchema)).to
Expand Down

0 comments on commit e7f901c

Please sign in to comment.