1 | ;
|
2 | let asterank = require('../index.js').asterank;
|
3 | let chai = require('chai');
|
4 |
|
5 | let assert = chai.assert;
|
6 |
|
7 | describe('Asterank', function() {
|
8 | it('should return json data', function (done) {
|
9 | this.timeout(5000);
|
10 | asterank({query: {"e":{"$lt":0.1},"i":{"$lt":4},"a":{"$lt":1.5}}, limit: 10}).then(function (data) {
|
11 | assert.containSubset(JSON.parse(data)[0], {id: "a0138911"});
|
12 | done();
|
13 | }).catch(done);
|
14 | });
|
15 | }); |
\ | No newline at end of file |