23 lines
440 B
TypeScript
23 lines
440 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",
|
|
})
|
|
);
|
|
expect(user).toMatchSnapshot();
|
|
});
|
|
|
|
it("presents a user without slack data", async () => {
|
|
const user = presentUser(
|
|
User.build({
|
|
id: "123",
|
|
name: "Test User",
|
|
})
|
|
);
|
|
expect(user).toMatchSnapshot();
|
|
});
|