FIX: allows adapters to define a custom primaryKey (#9254)

This commit is contained in:
Joffrey JAFFEUX
2020-03-30 15:23:59 +02:00
committed by GitHub
parent 92e81d2ae5
commit 2b78bd01ab
5 changed files with 68 additions and 24 deletions

View File

@ -182,3 +182,9 @@ QUnit.test("findAll embedded", async assert => {
assert.equal(fruits.objectAt(2).get("farmer.name"), "Luke Skywalker");
});
QUnit.test("custom primaryKey", async assert => {
const store = createStore();
const cats = await store.findAll("cat");
assert.equal(cats.objectAt(0).name, "souna");
});