From a10f08e1b9133f36f86dd05f520d49fe1c7f9a77 Mon Sep 17 00:00:00 2001 From: Sivert Kronen Hatteberg <skh@uio.no> Date: Thu, 25 Nov 2021 10:04:54 +0100 Subject: [PATCH] Fix tests --- frontend/src/themes/index.test.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/themes/index.test.ts b/frontend/src/themes/index.test.ts index fcc10d6d..70f57b73 100644 --- a/frontend/src/themes/index.test.ts +++ b/frontend/src/themes/index.test.ts @@ -9,28 +9,28 @@ afterAll(() => { }) test('Get theme uio', async () => { - process.env.REACT_APP_THEME = 'uio' + process.env.REACT_APP_INST = 'uio' // eslint-disable-next-line global-require const getTheme = require('./index').default expect(getTheme().palette.primary.main).toEqual('#000000') }) test('Get theme uib', async () => { - process.env.REACT_APP_THEME = 'uib' + process.env.REACT_APP_INST = 'uib' // eslint-disable-next-line global-require const getTheme = require('./index').default expect(getTheme().palette.primary.main).toEqual('#cf3c3a') }) test('Get theme default when set', async () => { - process.env.REACT_APP_THEME = 'default' + process.env.REACT_APP_INST = 'default' // eslint-disable-next-line global-require const getTheme = require('./index').default expect(getTheme().palette.primary.main).toEqual('#1976d2') }) test('Get theme default when unknown', async () => { - process.env.REACT_APP_THEME = 'unknown' + process.env.REACT_APP_INST = 'unknown' // eslint-disable-next-line global-require const getTheme = require('./index').default expect(getTheme().palette.primary.main).toEqual('#1976d2') -- GitLab