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

Unit tests & fixes #33

Merged
merged 7 commits into from
Jan 15, 2021
Merged

Unit tests & fixes #33

merged 7 commits into from
Jan 15, 2021

Conversation

cheesytim
Copy link
Member

@cheesytim cheesytim commented Jan 14, 2021

  • add tests for QButton
  • add tests for QBreadcrumbs
  • add tests for QCascader
  • fix QDatepicker localization
  • delete postfix prop from QBreadcrumbs

@cheesytim cheesytim requested review from Esvalirion, ViZhe and shamilfrontend and removed request for Esvalirion January 14, 2021 15:23
&_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;
Copy link
Member

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();
Copy link
Member

Choose a reason for hiding this comment

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

тут кажется стоит указать конкретное событие которое ожидается эмитнутым

src/qComponents/QCascader/QCascader.test.js Show resolved Hide resolved
expect(instance.vm.clearBtnVisible).toBeFalsy();
});
it('should return true if showClose is true', () => {
instance.vm.showClose = true;
Copy link
Member

Choose a reason for hiding this comment

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

лучше через setData

src/qComponents/QCascader/QCascader.test.js Show resolved Hide resolved
@cheesytim cheesytim merged commit c8c4ddf into master Jan 15, 2021
@cheesytim cheesytim deleted the unit-tests branch January 15, 2021 07:55
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.

3 participants