Remove unused test
This commit is contained in:
parent
442a268f8d
commit
3ef300d1f3
1 changed files with 0 additions and 30 deletions
|
@ -23,7 +23,6 @@ describe('Actions Component', () => {
|
||||||
el: document.querySelector('.test-dom-element'),
|
el: document.querySelector('.test-dom-element'),
|
||||||
propsData: {
|
propsData: {
|
||||||
actions: actionsMock,
|
actions: actionsMock,
|
||||||
playIconSvg: '<svg></svg>',
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -34,33 +33,4 @@ describe('Actions Component', () => {
|
||||||
component.$el.querySelector('.dropdown-menu li a').getAttribute('href'),
|
component.$el.querySelector('.dropdown-menu li a').getAttribute('href'),
|
||||||
).toEqual(actionsMock[0].play_path);
|
).toEqual(actionsMock[0].play_path);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should render a dropdown with the provided svg', () => {
|
|
||||||
const actionsMock = [
|
|
||||||
{
|
|
||||||
name: 'bar',
|
|
||||||
play_path: 'https://gitlab.com/play',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'foo',
|
|
||||||
play_path: '#',
|
|
||||||
},
|
|
||||||
];
|
|
||||||
|
|
||||||
const component = new ActionsComponent({
|
|
||||||
el: document.querySelector('.test-dom-element'),
|
|
||||||
propsData: {
|
|
||||||
actions: actionsMock,
|
|
||||||
playIconSvg: '<svg></svg>',
|
|
||||||
},
|
|
||||||
});
|
|
||||||
|
|
||||||
expect(
|
|
||||||
component.$el.querySelector('.js-dropdown-play-icon-container').children,
|
|
||||||
).toContain('svg');
|
|
||||||
|
|
||||||
expect(
|
|
||||||
component.$el.querySelector('.js-action-play-icon-container').children,
|
|
||||||
).toContain('svg');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue