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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(repository): verify relation type in resolve{Relation}Metadata #4046

Merged
merged 2 commits into from Nov 8, 2019

Conversation

nabdelgadir
Copy link
Contributor

@nabdelgadir nabdelgadir commented Nov 5, 2019

Resolves #3440.

Split into two commits:
1) Added tests to verify the correct relation type is used in resolve{Relation}Metadata.
2) Improved setup for resolve{Relation}Metadata tests based on #4046 (comment).

Checklist

馃憠 Read and sign the CLA (Contributor License Agreement) 馃憟

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • API Documentation in code was updated
  • Documentation in /docs/site was updated
  • Affected artifact templates in packages/cli were updated
  • Affected example projects in examples/* were updated

馃憠 Check out how to submit a PR 馃憟

@nabdelgadir nabdelgadir self-assigned this Nov 5, 2019
@nabdelgadir nabdelgadir marked this pull request as ready for review November 5, 2019 18:17
@nabdelgadir
Copy link
Contributor Author

It's easier to review if "Hide whitespace changes" is selected.

Copy link
Contributor

@jannyHou jannyHou left a comment

Choose a reason for hiding this comment

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

馃憤 LGTM

Copy link
Member

@bajtos bajtos left a comment

Choose a reason for hiding this comment

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

Much better 馃憦

Personally, I think these tests are unit-level, because they just call resolve{Relation}Metadata with some metadata object, and therefore they belong to src/__tests__/unit/resolve-{name}-metadata.test.js. Such file-moves are best done outside of this pull request though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verify relation type in resolve{Relation}Metadata
4 participants