Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
community
pount
pount-front
Commits
ca8d766d
Commit
ca8d766d
authored
Oct 12, 2021
by
Jean Rabreau
Browse files
✅
new title prefix path for item copy
parent
07b28de7
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/store/item.spec.js
View file @
ca8d766d
...
...
@@ -179,7 +179,7 @@ describe('store/item', () => {
expect
(
title
===
metaTitle
,
'
same titles
'
).
to
.
be
.
true
})
it
(
'
should have prefixed titles
'
,
()
=>
{
const
prefix
=
i18n
.
t
(
'
item.copy
Of
'
)
const
prefix
=
i18n
.
t
(
'
item.copy
.prefix
'
)
expect
(
title
.
startsWith
(
prefix
),
'
title prefix
'
).
to
.
be
.
true
})
it
(
'
should refer to old title
'
,
()
=>
{
...
...
Write
Preview
Supports
Markdown
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