Skip to content

Instantly share code, notes, and snippets.

@starsinmypockets
Created July 3, 2019 12:41
Show Gist options
  • Save starsinmypockets/f3ac2746c3f4725249e3311e5372678b to your computer and use it in GitHub Desktop.
Save starsinmypockets/f3ac2746c3f4725249e3311e5372678b to your computer and use it in GitHub Desktop.
test('Can update config attributes once app is instatiated', async t => {
config.set('CKAN_THEME_ROUTES', 'value')
t.is(app.get('config').get('CKAN_THEME_ROUTES'), 'value')
t.is(config.get('CKAN_THEME_ROUTES'), 'value')
})
test('Can set new config attributes once app is instatiated', async t => {
config.set('NEW_VAL', 'value')
t.is(app.get('config').get('NEW_VAL'), 'value')
t.is(config.get('NEW_VAL'), 'value')
})
/*
routes › index › Can update config attributes once app is instatiated
/home/pj/Datopian/repos/frontend-v2/tests/routes/index.test.js:28
27:
28: t.is(app.get('config').get('CKAN_THEME_ROUTES'), 'valu…
29: t.is(config.get('CKAN_THEME_ROUTES'), 'value')
Difference:
- 'example'
+ 'value'
routes › index › Can set new config attributes once app is instatiated
/home/pj/Datopian/repos/frontend-v2/tests/routes/index.test.js:37
36:
37: t.is(app.get('config').get('NEW_VAL'), 'value')
38: t.is(config.get('NEW_VAL'), 'value')
Difference:
- undefined
+ 'value'
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment