Permalink
Browse files

Add template for stringify

  • Loading branch information...
1 parent a21108b commit 8d7c43df2ca53c306eba9dab4d438525cae8a6ef @ai ai committed Mar 7, 2016
Showing with 24 additions and 3 deletions.
  1. +3 −2 index.es6
  2. +10 −0 stringifier.es6
  3. +6 −0 stringify.es6
  4. +5 −1 test/sugarss.js
View
@@ -1,3 +1,4 @@
-import parse from './parse';
+import stringify from './stringify';
+import parse from './parse';
-export default { parse };
+export default { stringify, parse };
View
@@ -0,0 +1,10 @@
+export default class Stringifier {
+
+ constructor(builder) {
+ this.builder = builder;
+ }
+
+ stringify() {
+ }
+
+}
View
@@ -0,0 +1,6 @@
+import Stringifier from './stringifier';
+
+export default function stringify(node, builder) {
+ let str = new Stringifier(builder);
+ str.stringify(node);
+}
View
@@ -2,6 +2,10 @@ import sugarss from '../';
import test from 'ava';
-test('has parse', t => {
+test('has parse()', t => {
t.same(typeof sugarss.parse, 'function');
});
+
+test('has stringify()', t => {
+ t.same(typeof sugarss.stringify, 'function');
+});

0 comments on commit 8d7c43d

Please sign in to comment.