UI & Feature update - Alpha #9
@@ -33,7 +33,7 @@ describe("ReportsService", () => {
|
|||||||
describe("create", () => {
|
describe("create", () => {
|
||||||
it("should create a report", async () => {
|
it("should create a report", async () => {
|
||||||
const reporterId = "u1";
|
const reporterId = "u1";
|
||||||
const data = { contentId: "c1", reason: "spam" };
|
const data = { contentId: "c1", reason: "spam" } as const;
|
||||||
mockReportsRepository.create.mockResolvedValue({
|
mockReportsRepository.create.mockResolvedValue({
|
||||||
id: "r1",
|
id: "r1",
|
||||||
...data,
|
...data,
|
||||||
|
|||||||
Reference in New Issue
Block a user