summaryrefslogtreecommitdiff
path: root/spec/frontend/clusters/components/applications_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/clusters/components/applications_spec.js')
-rw-r--r--spec/frontend/clusters/components/applications_spec.js30
1 files changed, 26 insertions, 4 deletions
diff --git a/spec/frontend/clusters/components/applications_spec.js b/spec/frontend/clusters/components/applications_spec.js
index 33b30891d5e..81b84d4d1e2 100644
--- a/spec/frontend/clusters/components/applications_spec.js
+++ b/spec/frontend/clusters/components/applications_spec.js
@@ -13,6 +13,14 @@ import FluentdOutputSettings from '~/clusters/components/fluentd_output_settings
describe('Applications', () => {
let vm;
let Applications;
+ const ApplicationRowStub = {
+ name: 'application-row-stub',
+ template: `
+ <div>
+ <slot name="description"></slot>
+ </div>
+ `,
+ };
beforeEach(() => {
Applications = Vue.extend(applications);
@@ -202,7 +210,12 @@ describe('Applications', () => {
let wrapper;
beforeEach(() => {
- wrapper = shallowMount(Applications, { propsData });
+ wrapper = shallowMount(Applications, {
+ propsData,
+ stubs: {
+ ApplicationRow: ApplicationRowStub,
+ },
+ });
});
afterEach(() => {
wrapper.destroy();
@@ -436,7 +449,10 @@ describe('Applications', () => {
let knativeDomainEditor;
beforeEach(() => {
- wrapper = shallowMount(Applications, { propsData });
+ wrapper = shallowMount(Applications, {
+ propsData,
+ stubs: { ApplicationRow: ApplicationRowStub },
+ });
jest.spyOn(eventHub, '$emit');
knativeDomainEditor = wrapper.find(KnativeDomainEditor);
@@ -504,7 +520,10 @@ describe('Applications', () => {
let wrapper;
beforeEach(() => {
- wrapper = shallowMount(Applications, { propsData });
+ wrapper = shallowMount(Applications, {
+ propsData,
+ stubs: { ApplicationRow: ApplicationRowStub },
+ });
});
afterEach(() => {
wrapper.destroy();
@@ -563,7 +582,10 @@ describe('Applications', () => {
let wrapper;
beforeEach(() => {
- wrapper = shallowMount(Applications, { propsData });
+ wrapper = shallowMount(Applications, {
+ propsData,
+ stubs: { ApplicationRow: ApplicationRowStub },
+ });
});
afterEach(() => {
wrapper.destroy();