 describe "parser", ->
   it "it should parse the mega definition", ->
     ex = facet()
+      #.filter('$color = "Red"')
+      #.filter('$country.is("USA")')
       .apply('parent_x', "$^x")
-      .apply('addition', "$x + 10 - $y")
+      .apply('addition1', "$x + 10 - $y")
+      #.apply('addition2', "$x.add(1)")
       .apply('multiplication', "$x * 10 / $y")
       .apply('agg_count', "$data.count()")
       .apply('agg_sum', "$data.sum($price)")


    expect(ex.toJS()).to.deep.equal(
      facet()
      .apply('parent_x', facet("^x"))
      .apply('addition', facet("x").add(10, facet("y").negate()))
      .apply('multiplication', facet("x").multiply(10, facet("y").reciprocate()))
      .apply('agg_count', facet("data").count())
      .apply('agg_sum', facet("data").sum(facet('price')))

      .apply('agg_group_label1', facet("data").group(facet('carat')).label('Carat'))
      .apply('agg_group_label2', facet("data").group('$carat').label('Carat'))
      .toJS()
    )
    