commit: d8d766932a8b3caff7634ca1f9679525ce7123f1
parent 71a478108035ddf3489d75bec6ef11c91829ab27
Author: Henry Jameson <me@hjkos.com>
Date: Fri, 20 Sep 2024 02:07:27 +0300
cleanup
Diffstat:
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/services/theme_data/iss_deserializer.js b/src/services/theme_data/iss_deserializer.js
@@ -125,7 +125,6 @@ export const deserialize = (input) => {
output.directives = Object.fromEntries(content.map(d => {
const [property, value] = d.split(':')
- console.log(property, value)
let realValue = value.trim()
if (property === 'shadow') {
realValue = parseShadow(value.split(',').map(v => v.trim()))
diff --git a/test/unit/specs/services/theme_data/iss_deserializer.spec.js b/test/unit/specs/services/theme_data/iss_deserializer.spec.js
@@ -4,12 +4,12 @@ import Button from 'src/components/button.style.js'
describe.only('ISS (de)serialization', () => {
describe('ISS deserialization', () => {
- it('Output should = input', () => {
+ it('Output should equal input', () => {
const normalized = Button.defaultRules.map(x => ({ component: 'Button', ...x }))
const serialized = serialize(normalized)
const deserialized = deserialize(serialized)
- // deserialized.toString()
+ // for some reason comparing objects directly fails the assert
expect(JSON.stringify(deserialized)).to.equal(JSON.stringify(normalized))
})
})