Skip to content
Snippets Groups Projects
Commit d8d76693 authored by HJ's avatar HJ :fire:
Browse files

cleanup

parent 71a47810
No related branches found
No related tags found
1 merge request!1943Pleroma ISS (interface stylesheets) implementation
......@@ -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()))
......
......@@ -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))
})
})
......
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