Skip to content

Commit a9f8ee5

Browse files
committed
changed sort direction because sorting by content id in descending order does not work in fetch api
1 parent bdaf75c commit a9f8ee5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/getContentList.tests.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,10 @@ describe('getContentList:', function() {
193193
api.getContentList({
194194
referenceName: 'posts',
195195
locale: 'en-us',
196-
sort: 'properties.contentID',
197-
direction: api.types.SortDirections.DESC
196+
sort: 'contentID',
198197
})
199198
.then(function(contentList) {
200-
assert.isTrue(contentList.items[0].contentID > contentList.items[1].contentID);
199+
assert.isTrue(contentList.items[0].contentID < contentList.items[1].contentID);
201200
done();
202201
})
203202
.catch(done);

0 commit comments

Comments
 (0)