2017-10-24 00:56:39 -04:00
|
|
|
import Vue from 'vue';
|
|
|
|
import applications from '~/clusters/components/applications.vue';
|
|
|
|
import mountComponent from '../../helpers/vue_mount_component_helper';
|
|
|
|
|
|
|
|
describe('Applications', () => {
|
|
|
|
let vm;
|
|
|
|
let Applications;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
Applications = Vue.extend(applications);
|
|
|
|
});
|
|
|
|
|
|
|
|
afterEach(() => {
|
|
|
|
vm.$destroy();
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
vm = mountComponent(Applications, {
|
|
|
|
applications: {
|
|
|
|
helm: { title: 'Helm Tiller' },
|
|
|
|
ingress: { title: 'Ingress' },
|
|
|
|
runner: { title: 'GitLab Runner' },
|
2017-12-22 12:23:43 -05:00
|
|
|
prometheus: { title: 'Prometheus' },
|
2017-10-24 00:56:39 -04:00
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
it('renders a row for Helm Tiller', () => {
|
|
|
|
expect(vm.$el.querySelector('.js-cluster-application-row-helm')).toBeDefined();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('renders a row for Ingress', () => {
|
|
|
|
expect(vm.$el.querySelector('.js-cluster-application-row-ingress')).toBeDefined();
|
|
|
|
});
|
|
|
|
|
2017-12-22 12:23:43 -05:00
|
|
|
it('renders a row for Prometheus', () => {
|
|
|
|
expect(vm.$el.querySelector('.js-cluster-application-row-prometheus')).toBeDefined();
|
|
|
|
});
|
|
|
|
|
2017-11-03 12:33:15 -04:00
|
|
|
/* * /
|
2017-10-24 00:56:39 -04:00
|
|
|
it('renders a row for GitLab Runner', () => {
|
|
|
|
expect(vm.$el.querySelector('.js-cluster-application-row-runner')).toBeDefined();
|
|
|
|
});
|
|
|
|
/* */
|
|
|
|
});
|
|
|
|
});
|