mirror of
https://github.com/outline/outline.git
synced 2026-02-09 12:28:40 -06:00
25 lines
496 B
TypeScript
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();
|
|
});
|