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

apollo-parser: update operation definition tests for #158 #160

Merged
merged 1 commit into from
Feb 7, 2022

Conversation

lrlna
Copy link
Member

@lrlna lrlna commented Feb 7, 2022

Avoids creating an operation definition node when an unrelated token is popped off in the parsing of operation definition nodes.

Instead of having an incorrect AST for input "description"{}

We are now correctly creating an AST that looks like this:

Additionally, we are adding an correctly testing for number of errors and definitions in the AST when a description precedes an Operation Definition. We are also adding an error test case to the test suite with a description before an operation definition.

Avoids creating an operation definition node when an unrelated token is popped off in the parsing of operation definition nodes.

Additionally, we are adding an correctly testing for number of errors and definitions in the AST when a description precedes an Operation Definition. We are also adding an error test case to the test suite with a description before an operation definition.
@lrlna lrlna self-assigned this Feb 7, 2022
@lrlna lrlna changed the title apollo-parser: update operation definition tests after #158 apollo-parser: update operation definition tests for #158 Feb 7, 2022
@lrlna lrlna merged commit f183a61 into main Feb 7, 2022
@lrlna lrlna deleted the test-for-158 branch February 7, 2022 12:34
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.

1 participant