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
0a98a4d5
Commit
0a98a4d5
authored
Sep 16, 2020
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix date-dependent snapshot test with useFakeDate
parent
f54038fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
ee/spec/frontend/geo_replicable/components/geo_replicable_time_ago_spec.js
...geo_replicable/components/geo_replicable_time_ago_spec.js
+4
-0
No files found.
ee/spec/frontend/geo_replicable/components/geo_replicable_time_ago_spec.js
View file @
0a98a4d5
import
Vuex
from
'
vuex
'
;
import
{
createLocalVue
,
mount
}
from
'
@vue/test-utils
'
;
import
{
useFakeDate
}
from
'
helpers/fake_date
'
;
import
createStore
from
'
ee/geo_replicable/store
'
;
import
GeoReplicableTimeAgo
from
'
ee/geo_replicable/components/geo_replicable_time_ago.vue
'
;
import
TimeAgo
from
'
~/vue_shared/components/time_ago_tooltip.vue
'
;
...
...
@@ -34,6 +35,9 @@ describe('GeoReplicableTimeAgo', () => {
const
findDefaultText
=
()
=>
findGeoReplicableTimeAgo
().
find
(
'
span
'
);
describe
(
'
template
'
,
()
=>
{
// ensure consistent output for timeago
useFakeDate
(
2020
,
0
,
1
);
beforeEach
(()
=>
{
createComponent
();
});
...
...
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