Commit cbe32014 authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch 'dak-sse-mock-data-cleanup' into 'master'

Resolve mock_data TODO

See merge request gitlab-org/gitlab!44364
parents 65d75f10 6a7dfa75
...@@ -5,18 +5,11 @@ import { humanize } from '~/lib/utils/text_utility'; ...@@ -5,18 +5,11 @@ import { humanize } from '~/lib/utils/text_utility';
import FrontMatterControls from '~/static_site_editor/components/front_matter_controls.vue'; import FrontMatterControls from '~/static_site_editor/components/front_matter_controls.vue';
import { sourceContentHeaderObjYAML as settings } from '../mock_data';
describe('~/static_site_editor/components/front_matter_controls.vue', () => { describe('~/static_site_editor/components/front_matter_controls.vue', () => {
let wrapper; let wrapper;
// TODO Refactor and update `sourceContentHeaderObjYAML` in mock_data when !41230 lands
const settings = {
layout: 'handbook-page-toc',
title: 'Handbook',
twitter_image: '/images/tweets/handbook-gitlab.png',
suppress_header: true,
extra_css: ['sales-and-free-trial-common.css', 'form-to-resource.css'],
};
const buildWrapper = (propsData = {}) => { const buildWrapper = (propsData = {}) => {
wrapper = shallowMount(FrontMatterControls, { wrapper = shallowMount(FrontMatterControls, {
propsData: { propsData: {
......
...@@ -2,11 +2,17 @@ export const sourceContentHeaderYAML = `--- ...@@ -2,11 +2,17 @@ export const sourceContentHeaderYAML = `---
layout: handbook-page-toc layout: handbook-page-toc
title: Handbook title: Handbook
twitter_image: /images/tweets/handbook-gitlab.png twitter_image: /images/tweets/handbook-gitlab.png
suppress_header: true
extra_css:
- sales-and-free-trial-common.css
- form-to-resource.css
---`; ---`;
export const sourceContentHeaderObjYAML = { export const sourceContentHeaderObjYAML = {
layout: 'handbook-page-toc', layout: 'handbook-page-toc',
title: 'Handbook', title: 'Handbook',
twitter_image: '/images/tweets/handbook-gitlab.png', twitter_image: '/images/tweets/handbook-gitlab.png',
suppress_header: true,
extra_css: ['sales-and-free-trial-common.css', 'form-to-resource.css'],
}; };
export const sourceContentSpacing = `\n`; export const sourceContentSpacing = `\n`;
export const sourceContentBody = `## On this page export const sourceContentBody = `## On this page
......
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