mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 19:29:34 +08:00
FIX: allows adapters to define a custom primaryKey (#9254)
This commit is contained in:
@ -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");
|
||||
});
|
||||
|
Reference in New Issue
Block a user