Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Add complete specification in tests #2

Merged
merged 11 commits into from
Oct 20, 2017
Merged

Add complete specification in tests #2

merged 11 commits into from
Oct 20, 2017

Conversation

Jesus89
Copy link
Member

@Jesus89 Jesus89 commented Oct 20, 2017

Related to: CartoDB/carto.js#1832

  • Add tests
  • Remove lodash

@Jesus89 Jesus89 requested a review from IagoLast October 20, 2017 12:50
Copy link
Contributor

@IagoLast IagoLast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏳️

package.json Outdated
@@ -6,9 +6,6 @@
"author": "Jesús Arroyo Torrens <jarroyo@cartodb.com>",
"repository": "https://github.com/Jesus89/CartoJSS",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update repo 🦅

* Serialize CartoJSS object into CartoCSS string
* @param {Object} input CartoJSS object
* @return {string} CartoCSS string
*/
serialize: function (input) {
return serialize(input, 0).join('\n');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has the \n any implications in turbocarto?

Copy link
Member Author

@Jesus89 Jesus89 Oct 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think it is required so we can add opts (pretty) to the serialize function in other PR

@Jesus89 Jesus89 merged commit 5c3c22c into master Oct 20, 2017
@IagoLast IagoLast deleted the advanced-cartocss branch October 20, 2017 14:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants