[go: up one dir, main page]

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

Feat/testing #2

Merged
merged 12 commits into from
Mar 28, 2022
Merged

Feat/testing #2

merged 12 commits into from
Mar 28, 2022

Conversation

dangerfrog
Copy link
Collaborator

Started adding component unit tests, tidied up testing format.

Added AvatarList story.


const element = screen.getByRole("color-dot");

expect(element.style.width && element.style.height).toBe("5px");
Copy link
Collaborator

Choose a reason for hiding this comment

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

(item1 && item2 ) will result in only checking item2, to check both duplicate the expectation or map to a config
this is valid for use cases where you want to check another value exists before checking item2

Copy link
Collaborator
@balbatross balbatross left a comment

Choose a reason for hiding this comment

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

One fixup was needed in ColorDot to stop (item1 && item2) negating half the test otherwise good stuff.

@balbatross balbatross merged commit 4b517bf into master Mar 28, 2022
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.

2 participants