2017-05-06 13:02:06 -04:00
|
|
|
import getActionIcon from '~/vue_shared/ci_action_icons';
|
|
|
|
import cancelSVG from 'icons/_icon_action_cancel.svg';
|
|
|
|
import retrySVG from 'icons/_icon_action_retry.svg';
|
|
|
|
import playSVG from 'icons/_icon_action_play.svg';
|
2017-05-08 10:53:54 -04:00
|
|
|
import stopSVG from 'icons/_icon_action_stop.svg';
|
2017-05-06 13:02:06 -04:00
|
|
|
|
|
|
|
describe('getActionIcon', () => {
|
|
|
|
it('should return an empty string', () => {
|
|
|
|
expect(getActionIcon()).toEqual('');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should return cancel svg', () => {
|
|
|
|
expect(getActionIcon('icon_action_cancel')).toEqual(cancelSVG);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should return retry svg', () => {
|
|
|
|
expect(getActionIcon('icon_action_retry')).toEqual(retrySVG);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('should return play svg', () => {
|
|
|
|
expect(getActionIcon('icon_action_play')).toEqual(playSVG);
|
|
|
|
});
|
2017-05-08 10:53:54 -04:00
|
|
|
|
|
|
|
it('should render stop svg', () => {
|
|
|
|
expect(getActionIcon('icon_action_stop')).toEqual(stopSVG);
|
|
|
|
});
|
2017-05-06 13:02:06 -04:00
|
|
|
});
|