Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update printSchema for recent SDL change to implements. #1179

Merged
merged 1 commit into from
Jan 8, 2018

Conversation

mohawk2
Copy link
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
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
Contributor Author

mohawk2 commented Dec 25, 2017

@IvanGoncharov Agreed, changed!

@leebyron
Copy link
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