Skip to content

Commit

Permalink
adds test for DirectChatMessage/index.ts (PalisadoesFoundation#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
beingnoble03 authored Jan 4, 2023
1 parent 680b013 commit 7bc00cc
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions __tests__/resolvers/DirectChatMessage/index.spec.ts
Original file line number Diff line number Diff line change
@@ -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);
});
});

0 comments on commit 7bc00cc

Please sign in to comment.