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
2352c42b
Commit
2352c42b
authored
Sep 22, 2021
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Import JSON fixtures as modules
parent
d23a3d00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
spec/frontend/deploy_freeze/helpers.js
spec/frontend/deploy_freeze/helpers.js
+3
-2
No files found.
spec/frontend/deploy_freeze/helpers.js
View file @
2352c42b
import
{
secondsToHours
}
from
'
~/lib/utils/datetime_utility
'
;
import
freezePeriodsFixture
from
'
test_fixtures/api/freeze-periods/freeze_periods.json
'
;
import
timezoneDataFixture
from
'
test_fixtures/timezones/short.json
'
;
export
const
freezePeriodsFixture
=
getJSONFixture
(
'
/api/freeze-periods/freeze_periods.json
'
);
export
const
timezoneDataFixture
=
getJSONFixture
(
'
/timezones/short.json
'
);
export
{
freezePeriodsFixture
,
timezoneDataFixture
};
export
const
findTzByName
=
(
identifier
=
''
)
=>
timezoneDataFixture
.
find
(({
name
})
=>
name
.
toLowerCase
()
===
identifier
.
toLowerCase
());
...
...
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