-
Notifications
You must be signed in to change notification settings - Fork 17
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
Unit tests & fixes #33
Conversation
cheesytim
commented
Jan 14, 2021
•
edited
Loading
edited
- add tests for QButton
- add tests for QBreadcrumbs
- add tests for QCascader
- fix QDatepicker localization
- delete postfix prop from QBreadcrumbs
&_exact-active:not(:first-child), | ||
&_last:not(:first-child) { | ||
font-weight: var(--font-weight-bold); | ||
font-size: 16px; | ||
line-height: var(--line-height-base); | ||
color: var(--color-primary-black); | ||
text-overflow: initial; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
последний тоже должен обрезаться
it('should emit click', () => { | ||
const instance = shallowMount(Component); | ||
instance.vm.handleClick(); | ||
expect(instance.emitted()).toBeTruthy(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут кажется стоит указать конкретное событие которое ожидается эмитнутым
expect(instance.vm.clearBtnVisible).toBeFalsy(); | ||
}); | ||
it('should return true if showClose is true', () => { | ||
instance.vm.showClose = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
лучше через setData