var should = require('should');

var QueryCompiler = require('../lib/compiler');
describe('QueryCompiler', function () {
  describe.only('compile', function () {
    it('compile ne null query', function () {
      var query = {
        attachmentId: { $ne: null }
      };
      var compiler = new QueryCompiler();
      should.doesNotThrow(function () {
        compiler.compile(query);
      });
    });
  });
  describe('_compilePredicates', function () {
    it('compile eq query', function () {
      var compiler = new QueryCompiler();
      var p = compiler._compilePredicates({age:10});
      p[0]({age:10}).should.be.true;
    })
  });
  describe('_subQuery', function () {
    it('compile eq query', function () {
      var compiler = new QueryCompiler();
      var p = compiler._subQuery([{age:10}]);
      p[0]({age:10}).should.be.true;
    })
  });
});

var should = require('should');

var QueryCompiler = require('../lib/compiler');
describe('QueryCompiler', function () {
  describe('compile', function () {
    it('compile ne null query', function () {
      var query = {
        attachmentId: { $ne: null }
      };
      var compiler = new QueryCompiler();
      should.doesNotThrow(function () {
        compiler.compile(query);
      });
    });
  });
  describe('_compilePredicates', function () {
    it('compile eq query', function () {
      var compiler = new QueryCompiler();
      var p = compiler._compilePredicates({age:10});
      p[0]({age:10}).should.be.true;
    })
  });
  describe('_subQuery', function () {
    it('compile eq query', function () {
      var compiler = new QueryCompiler();
      var p = compiler._subQuery([{age:10}]);
      p[0]({age:10}).should.be.true;
    })
  });
});

Remove .only from test case
Remove .only from test case
