We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 213ceee commit e3f21e9Copy full SHA for e3f21e9
test/integration/tests.js
@@ -251,12 +251,13 @@ test('Gets entries by inverse creation order', t => {
251
})
252
253
test('Gets entries by creation order and id order', t => {
254
- t.plan(2)
+ t.plan(3)
255
return client.getEntries({
256
- order: 'sys.createdAt,sys.id'
+ order: 'sys.revision,sys.id'
257
258
.then(response => {
259
- t.ok(response.items[0].sys.createdAt < response.items[1].sys.createdAt, 'createdAt')
+ t.equal(response.items[0].sys.revision, response.items[1].sys.revision)
260
+ t.ok(response.items[1].sys.revision < response.items[2].sys.revision, 'revision')
261
t.ok(response.items[0].sys.id < response.items[1].sys.id, 'id')
262
263
0 commit comments