Skip to content
Snippets Groups Projects
Commit aae963cf authored by Tore.Brede's avatar Tore.Brede
Browse files

Merge branch 'fix_theme_test' into 'master'

Fixing broken test

See merge request !108
parents 174e402f e3640308
No related branches found
No related tags found
1 merge request!108Fixing broken test
Pipeline #96851 passed
...@@ -26,14 +26,14 @@ test('Get theme default when set', async () => { ...@@ -26,14 +26,14 @@ test('Get theme default when set', async () => {
process.env.REACT_APP_THEME = 'default' process.env.REACT_APP_THEME = 'default'
// eslint-disable-next-line global-require // eslint-disable-next-line global-require
const getTheme = require('./index').default const getTheme = require('./index').default
expect(getTheme().palette.primary.main).toEqual('#3293ED') expect(getTheme().palette.primary.main).toEqual('#01579B')
}) })
test('Get theme default when unknown', async () => { test('Get theme default when unknown', async () => {
process.env.REACT_APP_THEME = 'unknown' process.env.REACT_APP_THEME = 'unknown'
// eslint-disable-next-line global-require // eslint-disable-next-line global-require
const getTheme = require('./index').default const getTheme = require('./index').default
expect(getTheme().palette.primary.main).toEqual('#3293ED') expect(getTheme().palette.primary.main).toEqual('#01579B')
}) })
export {} export {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment