Files
outline/server/presenters/user.test.ts
2022-01-06 18:24:28 -08:00

25 lines
496 B
TypeScript

import { User } from "@server/models";
import presentUser from "./user";
it("presents a user", async () => {
const user = presentUser(
User.build({
id: "123",
name: "Test User",
username: "testuser",
})
);
expect(user).toMatchSnapshot();
});
it("presents a user without slack data", async () => {
const user = presentUser(
User.build({
id: "123",
name: "Test User",
username: "testuser",
})
);
expect(user).toMatchSnapshot();
});