Skip to content

Commit

Permalink
Merge pull request #84 from agility/content-list-sort-fix
Browse files Browse the repository at this point in the history
changed sort direction
  • Loading branch information
James Vidler authored Nov 8, 2021
2 parents ff210a6 + a9f8ee5 commit 75ba234
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/getContentList.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,10 @@ describe('getContentList:', function() {
api.getContentList({
referenceName: 'posts',
locale: 'en-us',
sort: 'properties.contentID',
direction: api.types.SortDirections.DESC
sort: 'contentID',
})
.then(function(contentList) {
assert.isTrue(contentList.items[0].contentID > contentList.items[1].contentID);
assert.isTrue(contentList.items[0].contentID < contentList.items[1].contentID);
done();
})
.catch(done);
Expand Down

0 comments on commit 75ba234

Please sign in to comment.