Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
cbe32014
Commit
cbe32014
authored
Oct 07, 2020
by
Enrique Alcántara
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dak-sse-mock-data-cleanup' into 'master'
Resolve mock_data TODO See merge request gitlab-org/gitlab!44364
parents
65d75f10
6a7dfa75
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
spec/frontend/static_site_editor/components/front_matter_controls_spec.js
...atic_site_editor/components/front_matter_controls_spec.js
+2
-9
spec/frontend/static_site_editor/mock_data.js
spec/frontend/static_site_editor/mock_data.js
+6
-0
No files found.
spec/frontend/static_site_editor/components/front_matter_controls_spec.js
View file @
cbe32014
...
@@ -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
:
{
...
...
spec/frontend/static_site_editor/mock_data.js
View file @
cbe32014
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment