Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

Added diff to GraphQL generation test case.#11

Open
justinjoyn wants to merge 1 commit into
masterfrom
test-cases
Open

Added diff to GraphQL generation test case.#11
justinjoyn wants to merge 1 commit into
masterfrom
test-cases

Conversation

@justinjoyn
Copy link
Copy Markdown
Contributor

No description provided.

expect(expectedResult, result);
DiffMatchPatch dmp = new DiffMatchPatch();
List<Diff> differences = dmp.diff(expectedResult, result);
print(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Shouldn't we be asserting something? Also ideally we check the actual diff contents.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@venkatd Yes, we can check if the response is equal to the local file. But since we are comparing the local file to a remote response the output will fail for a small change in the GraphQL response. I added only the diff to simplify the output shown.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants