Skip to content

Commit

Permalink
Fix test for db table deletion.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrahunt committed Jul 2, 2016
1 parent 6b54df0 commit 2154dd3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/tests-upgrading.js
Expand Up @@ -147,6 +147,10 @@ asyncTest("upgrade", function () {
db.version(7).stores({ store2: "uuid" });
db.version(8).stores({ store1: null }); // Deleting a version.
return db.open();
}).then(function () {
// Let Dexie determine actual IDB state
db = new Dexie(DBNAME);
return db.open();
}).then(function () {
ok(true, "Could upgrade to version 8 - deleting an object store");
equal(db.tables.length, baseNumberOfTables + 1, "There should only be 1 store now");
Expand Down

0 comments on commit 2154dd3

Please sign in to comment.