fixing some comments
This commit is contained in:
Родитель
642ad192d0
Коммит
1bd55bde5e
|
@ -802,6 +802,9 @@ describe("window.codePush", function() {
|
|||
|
||||
describe("#window.codePush.sync", function() {
|
||||
|
||||
/* We test the functionality with sync twice--first, with sync only called one,
|
||||
* then, with sync called again while the first sync is still running
|
||||
|
||||
/* Tests where sync is called just once */
|
||||
describe("window.codePush.sync.1x", function() {
|
||||
|
||||
|
|
|
@ -211,8 +211,6 @@ class CodePush implements CodePushCordovaPlugin {
|
|||
*
|
||||
*/
|
||||
public sync(syncCallback?: SuccessCallback<any>, syncOptions?: SyncOptions, downloadProgress?: SuccessCallback<DownloadProgress>): void {
|
||||
// TODO: update this code to mirror the React-Native plugin, which uses promises instead of a callback.
|
||||
|
||||
/* Check if a sync is already in progress */
|
||||
if (CodePush.SyncInProgress) {
|
||||
/* A sync is already in progress */
|
||||
|
|
|
@ -34,7 +34,7 @@ enum SyncStatus {
|
|||
ERROR,
|
||||
|
||||
/**
|
||||
* Result status - there is an ongoing sync in progress.
|
||||
* Result status - there is an ongoing sync in progress, so this attempt to sync has been aborted.
|
||||
*/
|
||||
IN_PROGRESS,
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче