-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joel Varty
committed
Dec 20, 2019
1 parent
689791f
commit 5afe417
Showing
5 changed files
with
90 additions
and
49 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import chai from 'chai' | ||
const assert = chai.assert; | ||
const expect = chai.expect; | ||
|
||
import { createApiClient, createPreviewApiClient, createCachedApiClient } from './apiClients.config' | ||
import { SSL_OP_SSLEAY_080_CLIENT_DH_BUG } from 'constants'; | ||
|
||
/* | ||
This file contains static references to content from the instance configured in the apiClient.config file. | ||
*/ | ||
|
||
const ref = { | ||
publishedContentItemID: 15, | ||
updatesMadeToPublishedContentItemID: 15 | ||
} | ||
|
||
describe('syncPageItems:', function () { | ||
|
||
this.timeout('120s'); | ||
|
||
it('should retrieve the oldest page items and ticks', function (done) { | ||
var api = createApiClient(); | ||
|
||
let ticks = 0; | ||
|
||
//sync from scratch | ||
api.syncPageItems({ | ||
ticks: ticks, | ||
pageSize: 100, | ||
languageCode: 'en-us' | ||
}) | ||
.then(function (syncRet) { | ||
|
||
|
||
assert.isTrue(syncRet.ticks > 0, "should return a ticks value.") | ||
assert.isTrue(syncRet.items.length > 0, "should return items.") | ||
done(); | ||
}) | ||
.catch(done); | ||
|
||
}); | ||
|
||
|
||
}); | ||
|