Better variable names in a couple of tests (#1624)

This commit is contained in:
Kenneth Geisshirt 2018-01-17 16:47:23 +01:00 committed by GitHub
parent e695f9d67d
commit 03a4dd1486
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -544,8 +544,8 @@ module.exports = {
return Realm.open(config).then((realm) => {
return new Promise((resolve, reject) => {
realm.syncSession.addProgressNotification('download', 'reportIndefinitely', (x, y) => {
if (x === y) {
realm.syncSession.addProgressNotification('download', 'reportIndefinitely', (transferred, transferable) => {
if (transferred === transferable) {
resolve();
}
});
@ -603,8 +603,8 @@ module.exports = {
unregisterFunc();
//use second callback to wait for sync finished
realm.syncSession.addProgressNotification('upload', 'reportIndefinitely', (x, y) => {
if (x === y) {
realm.syncSession.addProgressNotification('upload', 'reportIndefinitely', (transferred, transferable) => {
if (transferred === transferable) {
resolve();
}
});