Skip to content

Commit

Permalink
test: ✅ update staticvalidationprovider test
Browse files Browse the repository at this point in the history
  • Loading branch information
Pauline Didier committed Oct 16, 2024
1 parent 4a7a2eb commit 65a6403
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/providers/static/StaticValidationProvider.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import Model from "@gram/core/dist/data/models/Model.js";
import { StaticValidationProvider } from "./StaticValidationProvider.js";
import { ValidationProvider } from "@gram/core/dist/validation/ValidationHandler.js";
import { createPostgresPool } from "@gram/core/dist/data/postgres.js";
import { DataAccessLayer } from "@gram/core/dist/data/dal.js";
describe("StaticValidationProvider", () => {
let staticValidationProvider: ValidationProvider;

beforeAll(async () => {
staticValidationProvider = new StaticValidationProvider();
const pool = await createPostgresPool();
const dal = new DataAccessLayer(pool);
staticValidationProvider = new StaticValidationProvider(dal);
});

it("should return an array", async () => {
Expand Down

0 comments on commit 65a6403

Please sign in to comment.