mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
extended dataapi tests
This commit is contained in:
@@ -10,16 +10,11 @@ import {
|
||||
WithBuilder
|
||||
} from "../../../src/data";
|
||||
import * as proto from "../../../src/data/prototype";
|
||||
import { compileQb, prettyPrintQb } from "../../helper";
|
||||
import { compileQb, prettyPrintQb, schemaToEm } from "../../helper";
|
||||
import { getDummyConnection } from "../helper";
|
||||
|
||||
const { dummyConnection } = getDummyConnection();
|
||||
|
||||
function schemaToEm(s: ReturnType<(typeof proto)["em"]>): EntityManager<any> {
|
||||
const { dummyConnection } = getDummyConnection();
|
||||
return new EntityManager(Object.values(s.entities), dummyConnection, s.relations, s.indices);
|
||||
}
|
||||
|
||||
describe("[data] WithBuilder", async () => {
|
||||
test("validate withs", async () => {
|
||||
const schema = proto.em(
|
||||
|
||||
Reference in New Issue
Block a user