Skip to content

Commit 1d71eed

Browse files
committed
Add placeholders for needed tests.
1 parent 82d2563 commit 1d71eed

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

src/hooks/useGetProduct.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ const useGetProduct = (productId: string | undefined) => {
2828
variables: { id: productId },
2929
authMode: isLoggedIn ? "userPool" : "iam",
3030
})) as GraphQLResult<GetProductQuery>;
31-
// console.log("result: ", result);
3231
const productData = result.data?.getProduct;
33-
// console.log("productData: ", productData);
3432
if (!productData || result.errors) {
3533
setErrorMessage("Error fetching product with ID: " + productId);
3634
return;

src/hooks/useGetReview.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
describe("useGetReview", () => {
2+
test.todo("should return review for given reviewId");
3+
});

src/hooks/useGetUser.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
describe("useGetUser", () => {
2+
test.todo("should return user for given userId");
3+
});
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
describe("useGetUserWithReviews", () => {
2+
test.todo("should return user with reviews for given userId");
3+
});

0 commit comments

Comments
 (0)