mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
added event related tests to mutator, fixed tests
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import { afterAll, describe, expect, test } from "bun:test";
|
import { afterAll, describe, expect, test } from "bun:test";
|
||||||
|
import type { EventManager } from "../../../src/core/events";
|
||||||
import {
|
import {
|
||||||
Entity,
|
Entity,
|
||||||
EntityManager,
|
EntityManager,
|
||||||
@@ -299,7 +300,7 @@ describe("[data] Mutator (Events)", async () => {
|
|||||||
expect(events.has(MutatorEvents.MutatorDeleteAfter.slug)).toBeTrue();
|
expect(events.has(MutatorEvents.MutatorDeleteAfter.slug)).toBeTrue();
|
||||||
});
|
});
|
||||||
|
|
||||||
/*test("insertOne event return is respected", async () => {
|
test("insertOne event return is respected", async () => {
|
||||||
const posts = proto.entity("posts", {
|
const posts = proto.entity("posts", {
|
||||||
title: proto.text(),
|
title: proto.text(),
|
||||||
views: proto.number()
|
views: proto.number()
|
||||||
@@ -364,5 +365,5 @@ describe("[data] Mutator (Events)", async () => {
|
|||||||
title: "test",
|
title: "test",
|
||||||
views: 3
|
views: 3
|
||||||
});
|
});
|
||||||
});*/
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user