mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-12 07:14:23 +00:00
Better variable names in a couple of tests (#1624)
This commit is contained in:
parent
e695f9d67d
commit
03a4dd1486
@ -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();
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user