Commit 500f08f7 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch...

Merge branch 'update-deprecated-slot-syntax-in-./app/assets/javascripts/clusters/components/applications.vue' into 'master'

Update deprecated slot syntax in `./app/assets/javascripts/clusters/components/applications.vue`

See merge request gitlab-org/gitlab!32009
parents 488ee7f2 36bf7e77
...@@ -13,6 +13,14 @@ import FluentdOutputSettings from '~/clusters/components/fluentd_output_settings ...@@ -13,6 +13,14 @@ import FluentdOutputSettings from '~/clusters/components/fluentd_output_settings
describe('Applications', () => { describe('Applications', () => {
let vm; let vm;
let Applications; let Applications;
const ApplicationRowStub = {
name: 'application-row-stub',
template: `
<div>
<slot name="description"></slot>
</div>
`,
};
beforeEach(() => { beforeEach(() => {
Applications = Vue.extend(applications); Applications = Vue.extend(applications);
...@@ -202,7 +210,12 @@ describe('Applications', () => { ...@@ -202,7 +210,12 @@ describe('Applications', () => {
let wrapper; let wrapper;
beforeEach(() => { beforeEach(() => {
wrapper = shallowMount(Applications, { propsData }); wrapper = shallowMount(Applications, {
propsData,
stubs: {
ApplicationRow: ApplicationRowStub,
},
});
}); });
afterEach(() => { afterEach(() => {
wrapper.destroy(); wrapper.destroy();
...@@ -436,7 +449,10 @@ describe('Applications', () => { ...@@ -436,7 +449,10 @@ describe('Applications', () => {
let knativeDomainEditor; let knativeDomainEditor;
beforeEach(() => { beforeEach(() => {
wrapper = shallowMount(Applications, { propsData }); wrapper = shallowMount(Applications, {
propsData,
stubs: { ApplicationRow: ApplicationRowStub },
});
jest.spyOn(eventHub, '$emit'); jest.spyOn(eventHub, '$emit');
knativeDomainEditor = wrapper.find(KnativeDomainEditor); knativeDomainEditor = wrapper.find(KnativeDomainEditor);
...@@ -504,7 +520,10 @@ describe('Applications', () => { ...@@ -504,7 +520,10 @@ describe('Applications', () => {
let wrapper; let wrapper;
beforeEach(() => { beforeEach(() => {
wrapper = shallowMount(Applications, { propsData }); wrapper = shallowMount(Applications, {
propsData,
stubs: { ApplicationRow: ApplicationRowStub },
});
}); });
afterEach(() => { afterEach(() => {
wrapper.destroy(); wrapper.destroy();
...@@ -563,7 +582,10 @@ describe('Applications', () => { ...@@ -563,7 +582,10 @@ describe('Applications', () => {
let wrapper; let wrapper;
beforeEach(() => { beforeEach(() => {
wrapper = shallowMount(Applications, { propsData }); wrapper = shallowMount(Applications, {
propsData,
stubs: { ApplicationRow: ApplicationRowStub },
});
}); });
afterEach(() => { afterEach(() => {
wrapper.destroy(); wrapper.destroy();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment