2017-12-08 12:26:39 +00:00
|
|
|
import Vue from 'vue';
|
2017-12-11 18:43:28 +00:00
|
|
|
import modal from '~/vue_shared/components/modal.vue';
|
2017-12-08 12:26:39 +00:00
|
|
|
import mountComponent from '../../helpers/vue_mount_component_helper';
|
|
|
|
|
2017-12-11 18:43:28 +00:00
|
|
|
describe('Modal', () => {
|
2017-12-08 12:26:39 +00:00
|
|
|
it('does not render a primary button if no primaryButtonLabel', () => {
|
2017-12-11 18:43:28 +00:00
|
|
|
const modalComponent = Vue.extend(modal);
|
|
|
|
const vm = mountComponent(modalComponent);
|
2017-12-08 12:26:39 +00:00
|
|
|
|
|
|
|
expect(vm.$el.querySelector('.js-primary-button')).toBeNull();
|
|
|
|
});
|
|
|
|
});
|