Skip to content

Update printSchema for recent SDL change to implements.#1179

Merged
leebyron merged 1 commit intographql:masterfrom
mohawk2:update-schema-print
Jan 8, 2018
Merged

Update printSchema for recent SDL change to implements.#1179
leebyron merged 1 commit intographql:masterfrom
mohawk2:update-schema-print

Conversation

@mohawk2
Copy link
Copy Markdown
Contributor

@mohawk2 mohawk2 commented Dec 25, 2017

Added test to prevent future regressions. Updated existing also.

return printSchema(schema);
const schemaText = printSchema(schema);
buildSchema(schemaText); // keep printSchema and buildSchema in sync
return schemaText;
Copy link
Copy Markdown
Member

@IvanGoncharov IvanGoncharov Dec 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mohawk2 It would be great to also test output of buildSchema:

expect(printSchema(buildSchema(schemaText))).to.equal(schemaText)

Added test to prevent future regressions. Updated existing also.
@mohawk2 mohawk2 force-pushed the update-schema-print branch from ba968da to 632a742 Compare December 25, 2017 22:34
@mohawk2
Copy link
Copy Markdown
Contributor Author

mohawk2 commented Dec 25, 2017

@IvanGoncharov Agreed, changed!

@leebyron
Copy link
Copy Markdown
Contributor

leebyron commented Jan 8, 2018

Great catch! Thanks for the added test coverage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants