node-zoom2
Version:
z39.50 with Node 12+ support
32 lines (25 loc) • 741 B
JavaScript
var expect = require('chai').expect;
var Query = require('..').binding.Query;
describe('Query', function () {
describe('constructor()', function () {
it('should work', function () {
new Query();
Query();
});
});
describe('#prefix()', function () {
it('should work', function () {
Query().prefix('@attr 1=4 台灣');
});
it('should work', function () {
Query().prefix('@attr 1=4 Jitter\u00A0in');
});
});
describe('#cql()', function () {
it('should work', function () {
Query().cql('dc.title any fish or/rel.combine=sum dc.creator any sanderson');
Query().cql('dc.title any fish prox/unit=word/distance>3 dc.title any squirrel');
});
});
});
;