You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ndx is required as the primary key of the store. It doesn't have any other testing purpose
37
+
ndx: BACKGROUND_MESSAGES_OBJECT_STORE_DEFAULT_NDX
38
+
});
39
+
};
40
+
}
41
+
42
+
asyncfunctionaddPayloadToDbInternal(db,payload){
43
+
// onsuccess might race with onupgradeneeded. Consequently causing "object stores was not found" error. Therefore, wait briefly for db.createObjectStore to complete
// ndx is required as the primary key of the store. It doesn't have any other testing purpose
57
-
ndx: BACKGROUND_MESSAGES_OBJECT_STORE_DEFAULT_NDX
58
-
});
59
-
};
60
-
}
61
-
62
-
asyncfunctionaddPayloadToDbInternal(db,payload){
63
-
// onsuccess might race with onupgradeneeded. Consequently causing " object stores was not found" error. Therefore, wait briefly for db.createObjectStore to complete
// Clearing the cache and db data by killing the previously instantiated driver. Note that ideally this call is placed inside the after/before hooks. However, Mocha forbids operations longer than 2s in hooks. Hence, this clearing call needs to be inside the test unit.
// Clearing the cache and db data by killing the previously instantiated driver. Note that ideally this call is placed inside the after/before hooks. However, Mocha forbids operations longer than 2s in hooks. Hence, this clearing call needs to be inside the test unit.
0 commit comments