Delete the database once, before tests run
This commit is contained in:
@@ -73,9 +73,11 @@ function hexToArrayBuffer(str) {
|
|||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
|
||||||
function deleteDatabase(done) {
|
/* Delete the database before running any tests */
|
||||||
indexedDB.deleteDatabase('test').then(done);
|
before(function(done) {
|
||||||
};
|
var idbReq = indexedDB.deleteDatabase('test');
|
||||||
|
idbReq.onsuccess = function() { done(); };
|
||||||
|
});
|
||||||
|
|
||||||
function clearDatabase(done) {
|
function clearDatabase(done) {
|
||||||
var convos = new Whisper.ConversationCollection();
|
var convos = new Whisper.ConversationCollection();
|
||||||
|
@@ -10947,9 +10947,11 @@ function hexToArrayBuffer(str) {
|
|||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
|
||||||
function deleteDatabase(done) {
|
/* Delete the database before running any tests */
|
||||||
indexedDB.deleteDatabase('test').then(done);
|
before(function(done) {
|
||||||
};
|
var idbReq = indexedDB.deleteDatabase('test');
|
||||||
|
idbReq.onsuccess = function() { done(); };
|
||||||
|
});
|
||||||
|
|
||||||
function clearDatabase(done) {
|
function clearDatabase(done) {
|
||||||
var convos = new Whisper.ConversationCollection();
|
var convos = new Whisper.ConversationCollection();
|
||||||
|
Reference in New Issue
Block a user