mirror of
https://github.com/outline/outline.git
synced 2026-11-21 13:34:02 +03:00
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();
|
|
});
|