Fixed back testing

This commit is contained in:
Theodor Diaconu 2017-11-25 14:50:51 +02:00
parent 1723605f09
commit ce09b67848
2 changed files with 6 additions and 3 deletions

View file

@ -472,13 +472,16 @@ describe('Hypernova', function () {
authors: {}
}
}, {
options: {limit: 1}
options: {limit: 1},
filters: {
name: 'JavaScript'
}
});
const data = query.fetch();
assert.lengthOf(data, 1);
const group = data[0];
assert.isArray(group.authors);
assert.isTrue(group.authors.length > 1);
assert.isTrue(group.authors.length > 0);
})
});

View file

@ -73,7 +73,7 @@ Package.onTest(function (api) {
api.addFiles('lib/query/testing/bootstrap/index.js');
// When you play with tests you should comment this to make tests go faster.
// api.addFiles('lib/query/testing/bootstrap/fixtures.js', 'server');
api.addFiles('lib/query/testing/bootstrap/fixtures.js', 'server');
api.addFiles('lib/query/testing/server.test.js', 'server');
api.addFiles('lib/query/testing/client.test.js', 'client');