Skip to content

Commit 3d5f706

Browse files
committed
Refactor - unit and integration test seperated
1 parent 3d5d33a commit 3d5f706

11 files changed

+7
-1
lines changed

client/src/test/unit/AddUpdateMovieModal.test.tsx client/src/test/integration/AddUpdateMovieModal.test.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ import { AddUpdateMovieModal } from "../../components/movie-details/AddUpdateMov
44

55
describe("AddUpdateMovieModal component", () => {
66
const mockMovie = {
7-
// mock movie object
7+
title: "Sample Movie",
8+
description: "This is a sample movie description",
9+
poster: "https://example.com/poster.jpg",
10+
trailer: "https://www.youtube.com/watch?v=1234",
11+
userId: "1234",
12+
id:"1234"
13+
814
};
915

1016
const mockOperation = "Create";

0 commit comments

Comments
 (0)