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

test: adding tests icon #59

Merged
merged 2 commits into from
Feb 10, 2023
Merged

test: adding tests icon #59

merged 2 commits into from
Feb 10, 2023

Conversation

Deeved
Copy link
Contributor

@Deeved Deeved commented Feb 10, 2023

Description

  • adding tests for icon
  • improving size code

@Deeved Deeved self-assigned this Feb 10, 2023
@Deeved Deeved linked an issue Feb 10, 2023 that may be closed by this pull request
Comment on lines 20 to 21
expect(icon.getAttribute('width')).toBe('24');
expect(icon.getAttribute('height')).toBe('24');
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
expect(icon.getAttribute('width')).toBe('24');
expect(icon.getAttribute('height')).toBe('24');
const defaultSize = 24
expect(icon.getAttribute('width')).toBe(defaultSize);
expect(icon.getAttribute('height')).toBe(defaultSize);

remove magic number

@iurynogueira iurynogueira merged commit b8664e1 into main Feb 10, 2023
@iurynogueira iurynogueira deleted the 56-create-ionicon-tests branch February 10, 2023 14:34
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.

Create IonIcon tests
3 participants