Skip to content

Switch schema parser tests to use dedent #1550

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

Merged
merged 1 commit into from
Oct 22, 2018

Conversation

IvanGoncharov
Copy link
Member

No description provided.


expect(toJSONDeep(doc)).to.deep.equal({
kind: 'Document',
definitions: [
{
kind: 'ObjectTypeDefinition',
name: nameNode('Hello', { start: 6, end: 11 }),
name: nameNode('Hello', { start: 5, end: 10 }),
Copy link
Member Author

Choose a reason for hiding this comment

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

All offsets are shifted by 1 because template literal contained initial new line after ` but it's striped by dedent.

@IvanGoncharov IvanGoncharov merged commit d1e0abf into graphql:master Oct 22, 2018
@IvanGoncharov IvanGoncharov deleted the dedentSchemaParserTests branch October 22, 2018 12:58
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.

2 participants