Skip to content
Snippets Groups Projects

Feat/us858 save expiration date

Merged Guilhem CARRON requested to merge feat/US858-Save-expiration-date into main
Files
7
const { isAlpha } = require('../../src/helpers/env')
const { isDev } = 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 = isAlpha()
expect(reply).toBe(false)
const reply = isDev()
expect(reply).toBe(true)
})
it('should return false for prod URL', () => {
// Set the variables
process.env.COZY_URL = 'https://pouet-ecolyo.cozygrandlyon.cloud/'
const reply = isAlpha()
const reply = isDev()
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 = isAlpha()
const reply = isDev()
expect(reply).toBe(true)
})
})
Loading