mirror of
https://github.com/vale981/grapher
synced 2025-03-05 09:31:42 -05:00
Fixed back testing
This commit is contained in:
parent
1723605f09
commit
ce09b67848
2 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
})
|
||||
});
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Add table
Reference in a new issue