Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
enedis_sge_konnector
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
LLLE_Project
enedis_sge_konnector
Merge requests
!19
Feat/us858 save expiration date
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feat/us858 save expiration date
feat/US858-Save-expiration-date
into
main
Overview
6
Commits
35
Pipelines
7
Changes
7
Merged
Guilhem CARRON
requested to merge
feat/US858-Save-expiration-date
into
main
2 years ago
Overview
6
Commits
35
Pipelines
7
Changes
7
Expand
Test it with the Ecolyo branch for the same US
Edited
2 years ago
by
Guilhem CARRON
0
0
Merge request reports
Compare
main
version 7
60e1534b
2 years ago
version 6
73f8a29e
2 years ago
version 5
bd173886
2 years ago
version 4
65d86baf
2 years ago
version 3
1f461867
2 years ago
version 2
8007def6
2 years ago
version 1
10a68619
2 years ago
main (base)
and
latest version
latest version
60e1534b
35 commits,
2 years ago
version 7
60e1534b
35 commits,
2 years ago
version 6
73f8a29e
34 commits,
2 years ago
version 5
bd173886
33 commits,
2 years ago
version 4
65d86baf
32 commits,
2 years ago
version 3
1f461867
31 commits,
2 years ago
version 2
8007def6
30 commits,
2 years ago
version 1
10a68619
29 commits,
2 years ago
7 files
+
53
−
35
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
__tests__/helpers/env.spec.js
+
5
−
5
Options
const
{
is
Alpha
}
=
require
(
'
../../src/helpers/env
'
)
const
{
is
Dev
}
=
require
(
'
../../src/helpers/env
'
)
describe
(
'
isAlpha
'
,
()
=>
{
const
OLD_ENV
=
process
.
env
@@ -14,19 +14,19 @@ describe('isAlpha', () => {
it
(
'
should return false for local
'
,
()
=>
{
// Set the variables
process
.
env
.
COZY_URL
=
'
http://cozy.tools:8080
'
const
reply
=
is
Alpha
()
expect
(
reply
).
toBe
(
fals
e
)
const
reply
=
is
Dev
()
expect
(
reply
).
toBe
(
tru
e
)
})
it
(
'
should return false for prod URL
'
,
()
=>
{
// Set the variables
process
.
env
.
COZY_URL
=
'
https://pouet-ecolyo.cozygrandlyon.cloud/
'
const
reply
=
is
Alpha
()
const
reply
=
is
Dev
()
expect
(
reply
).
toBe
(
false
)
})
it
(
'
should return true for alpha
'
,
()
=>
{
// Set the variables
process
.
env
.
COZY_URL
=
'
https://pouet.cozy.self-data.alpha.grandlyon.com/
'
const
reply
=
is
Alpha
()
const
reply
=
is
Dev
()
expect
(
reply
).
toBe
(
true
)
})
})
Loading