working primary key in code mode
This commit is contained in:
@@ -24,7 +24,7 @@ describe("[data] PrimaryField", async () => {
|
||||
});
|
||||
|
||||
test("isFillable", async () => {
|
||||
expect(field.isFillable()).toBe(false);
|
||||
expect(field.isFillable()).toBe(true);
|
||||
});
|
||||
|
||||
test("isHidden", async () => {
|
||||
@@ -36,7 +36,7 @@ describe("[data] PrimaryField", async () => {
|
||||
});
|
||||
|
||||
test("transformPersist/Retrieve", async () => {
|
||||
expect(field.transformPersist(1)).rejects.toThrow();
|
||||
expect(field.transformPersist(1)).resolves.toBe(1);
|
||||
expect(field.transformRetrieve(1)).toBe(1);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user