summaryrefslogtreecommitdiff
path: root/spec/javascripts/vue_shared/components/popup_dialog_spec.js
blob: 5c1d2a196f4ec45e3e59568fd29872b1484467b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import Vue from 'vue';
import PopupDialog from '~/vue_shared/components/popup_dialog.vue';
import mountComponent from '../../helpers/vue_mount_component_helper';

describe('PopupDialog', () => {
  it('does not render a primary button if no primaryButtonLabel', () => {
    const popupDialog = Vue.extend(PopupDialog);
    const vm = mountComponent(popupDialog);

    expect(vm.$el.querySelector('.js-primary-button')).toBeNull();
  });
});