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: add color scheme card tests #79

Open
wants to merge 4 commits into
base: proto
Choose a base branch
from

Conversation

tany31
Copy link

@tany31 tany31 commented Mar 28, 2022

No description provided.

it('sets selected class', () => {
createComponent({ propsData: { isSelected: true, colorScheme: mockColorScheme1 } })

expect(wrapper.element.classList.value.includes('select')).toBe(true)
Copy link
Contributor

Choose a reason for hiding this comment

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

базовый класс ведь уже включает в себя подстроку select, тест проверяет не то, что ожидаем :)

Copy link
Contributor

Choose a reason for hiding this comment

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

можно добавить проверку на то, что этого класса нет, пока не установлена пропа, а после появления пропы - появляется

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