opened
ssciolla
username_0
Responding to changes from PR #845, this PR adjusts `globals.js` to use an empty object if it is unable to find the`myla_globals` JSON element in the DOM. Along with an extra condition checking whether `mylaGlobals.primary_color` is `undefined` allows tests to import and consume `siteTheme` without an error. I also updated the hex values in the snapshot for `createHistogram.test.js` to reflect the new secondary color from PR #853. This PR aims to resolve issue #874.
Add fallback empty object for mylaGlobals and update createHistogram test (#874)
issue
created
pushyamig
username_1
All the Unit test are passing
comment