           name: 'b'
           conditions: [{
             name:'$or'
-            config: [
-              {name:null,conditions:[{name: '$eq', config:{value:2}}],leafs:[]}
-              {name:null,conditions:[{name:'$eq', config:{value:5}}],leafs:[]}
-            ]
+            config: [{$eq:2},{$eq:5}]
           }]
           leafs: []
         },{




describe 'little-matcher compiler', ->
  spec0 = { a: { b: $eq: 2 } }
  spec1 = { a: { b: $eq: 2 }, c: { $lt: 4 } }
  spec2 = { a: { b: { $gt:50, $lt:60 } } }

      name: null
      conditions: [{
        name:'$or'
        config:[{a:{b:{$lt:4}}, c:{$gt:1}}]
      }]
      leafs: []
    actual = compile(spec)
