Heritage Buttons Cursor bug fixes round 2
This commit is contained in:
parent
2207972996
commit
45e31efca5
2 changed files with 4 additions and 3 deletions
|
|
@ -39,7 +39,7 @@
|
|||
$color,
|
||||
$background,
|
||||
$color,
|
||||
$background
|
||||
$background,
|
||||
$color,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import { shallowMount } from '@vue/test-utils';
|
|||
import { getMountOptions } from '@/helpers/unit-test-helper.js';
|
||||
import buttonMain from '@/ux-components/button-main/button-main.vue';
|
||||
import buttonVariants from '@/constants/button-variants';
|
||||
import buttonSizes from '@/constants/button-sizes';
|
||||
|
||||
/** @ignore */
|
||||
function setupMocks(mountOptionsMockData = {}) {
|
||||
|
|
@ -54,7 +55,7 @@ describe('buttonMain.vue', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe.each(['', 'sm', 'lg'])('Button Sizes', (size) => {
|
||||
describe.each([...Object.keys(buttonSizes)])('Button Sizes', (size) => {
|
||||
test(`Should return btn-${size} class`, () => {
|
||||
// Act
|
||||
const wrapper = shallowMount(
|
||||
|
|
@ -146,7 +147,7 @@ describe('buttonMain.vue', () => {
|
|||
await button.trigger('click');
|
||||
|
||||
// Expect
|
||||
expect(wrapper.emitted('click').length).toBe(1);
|
||||
expect(wrapper.emitted('click-event')).toBeUndefined();
|
||||
});
|
||||
|
||||
it('Should emit GA event when clicked', async () => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue