From 7bc00cc39c80432841e117d0b9a290d80d077ca0 Mon Sep 17 00:00:00 2001 From: Noble Mittal <62551163+beingnoble03@users.noreply.github.com> Date: Wed, 4 Jan 2023 22:53:30 +0530 Subject: [PATCH] adds test for DirectChatMessage/index.ts (#842) --- .../resolvers/DirectChatMessage/index.spec.ts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 __tests__/resolvers/DirectChatMessage/index.spec.ts diff --git a/__tests__/resolvers/DirectChatMessage/index.spec.ts b/__tests__/resolvers/DirectChatMessage/index.spec.ts new file mode 100644 index 000000000..6cb48cf27 --- /dev/null +++ b/__tests__/resolvers/DirectChatMessage/index.spec.ts @@ -0,0 +1,22 @@ +import { DirectChatMessage } from "../../../src/lib/resolvers/DirectChatMessage/index"; +import { DirectChatMessageResolvers } from "../../../src/generated/graphqlCodegen"; +import { directChatMessageBelongsTo } from "../../../src/lib/resolvers/DirectChatMessage/directChatMessageBelongsTo"; +import { receiver } from "../../../src/lib/resolvers/DirectChatMessage/receiver"; +import { sender } from "../../../src/lib/resolvers/DirectChatMessage/sender"; +import { describe, it, beforeAll, expect } from "vitest"; + +let testDirectChatMessage: DirectChatMessageResolvers; + +beforeAll(() => { + testDirectChatMessage = { + directChatMessageBelongsTo, + receiver, + sender, + }; +}); + +describe("resolvers -> DirectChatMessage -> index", () => { + it("creates the DirectChatMessage", () => { + expect(testDirectChatMessage).toStrictEqual(DirectChatMessage); + }); +});