Skip to content

Commit

Permalink
Bugfixed the repro of issue dexie#1004 of PR dexie#959
Browse files Browse the repository at this point in the history
  • Loading branch information
dfahlander committed Mar 24, 2020
1 parent aa13920 commit 0ed6ba1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/tests-upgrading.js
Original file line number Diff line number Diff line change
Expand Up @@ -776,14 +776,14 @@ promisedTest("Issue #959 - Should migrate successfully with an explicit unique m

db = new Dexie("issue959");
db.version(1).stores({
friends: "&name, age"
friends: "&name, age"
});
db.version(2).stores({
friends2: "&name, age, weight"
friends: "&name, age, weight"
});

// Now, verify we have what we expect
const result = await db.friends.toArray();
const result = await db.friends.orderBy("age").toArray();
equal(result.length, 2, "Should get 2 friends");
equal(result[0].name, "Foo", "First friend is 'Foo'");
equal(result[1].name, "Bar", "First friend is 'Bar'");
Expand Down

0 comments on commit 0ed6ba1

Please sign in to comment.