diff --git a/__tests__/helpers/env.spec.js b/__tests__/helpers/env.spec.js index 97161504b404dce04798658f2c5c8b26ce8b63e7..a4885ed9e4b8eb56196ffcbada05c57566af7cab 100644 --- a/__tests__/helpers/env.spec.js +++ b/__tests__/helpers/env.spec.js @@ -1,4 +1,4 @@ -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) }) }) diff --git a/importedData.json b/importedData.json index 5b3d3e991426163b55da470e84c7a4e80fab9b56..f10553aeddd6ab85c1ff3acf3b1eaf06df744436 100644 --- a/importedData.json +++ b/importedData.json @@ -2,5 +2,29 @@ "io.cozy.files": [], "com.grandlyon.enedis.year": [], "com.grandlyon.enedis.month": [], - "com.grandlyon.enedis.minute": [] + "com.grandlyon.enedis.minute": [], + "io.cozy.accounts": [ + { + "cozyMetadata": { + "doctypeVersion": 1, + "metadataVersion": 1, + "createdAt": "2022-09-27T09:28:57.802Z", + "createdByApp": "enedis-sge-grandlyon", + "createdByAppVersion": "1.0.1", + "updatedAt": "2022-09-27T09:32:18.359Z", + "updatedByApps": [ + { + "slug": "enedis-sge-grandlyon", + "date": "2022-09-27T09:32:18.359Z", + "version": "1.0.1" + } + ] + }, + "_id": "1111111", + "account_type": "1111111", + "data": { + "name": "pouet" + } + } + ] } \ No newline at end of file