Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

Commit

Permalink
added missing filter test stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-scherzinger committed Dec 4, 2015
1 parent 0ae7d12 commit dc262b4
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions test/sdk.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,40 @@ describe('entry/entries', function() { // this is basically modelList
});
});
});
it('get entries, size and page', function() {

});
it('get entries, sort', function() { // TODO check for desc order

});
it('get entries, filter from', function() {

});
it('get entries, filter to', function() {

});
it('get entries, filter search', function() {

});
it('get entries, filter any', function() {

});
it('get entries, filter all', function() {

});
it('get entries, filter exact', function() {
return dm.model('to-do-item').entries({
filter: {
title: {
exact: 'Beef'
}
}
}).then(function(entries) {
expect(entries).to.be.ok;
expect(entries).to.be.instanceOf(Array);
expect(entries.length).to.be.equal(1);
});
});
it('get single entry', function() {
return dm.model('to-do-item').entry('VkGhAPQ2Qe').then(function(entry) {
expect(entry).to.be.ok;
Expand Down

0 comments on commit dc262b4

Please sign in to comment.