From d53b869d65791bab29c05b3666d2bc227ac4068c Mon Sep 17 00:00:00 2001
From: Loi Phan
Date: Fri, 1 Dec 2023 17:45:13 +0700
Subject: [PATCH] Add unit test
---
.../__snapshots__/AppLayout.test.tsx.snap | 2 +
.../Header/__snapshots__/Header.test.tsx.snap | 2 +
.../__snapshots__/HeaderMenu.test.tsx.snap | 2 +
.../__snapshots__/index.test.tsx.snap | 202 ++++++++++++++++++
.../src/components/Pagination/index.test.tsx | 46 ++++
.../src/components/Search/Search.test.tsx | 79 +++----
.../Search/__snapshots__/Search.test.tsx.snap | 72 +++++++
.../userRoomAvailableContext.test.tsx | 34 ++-
.../src/helpers/__tests__/helpers.test.ts | 10 +-
.../src/helpers/__tests__/validators.test.ts | 21 ++
hotel-management/src/helpers/helper.ts | 10 -
.../__tests__/useAccount.test.ts | 35 +++
12 files changed, 450 insertions(+), 65 deletions(-)
create mode 100644 hotel-management/src/components/Pagination/__snapshots__/index.test.tsx.snap
create mode 100644 hotel-management/src/components/Pagination/index.test.tsx
create mode 100644 hotel-management/src/components/Search/__snapshots__/Search.test.tsx.snap
create mode 100644 hotel-management/src/hooks/authentication/__tests__/useAccount.test.ts
diff --git a/hotel-management/src/components/AppLayout/__snapshots__/AppLayout.test.tsx.snap b/hotel-management/src/components/AppLayout/__snapshots__/AppLayout.test.tsx.snap
index dc7ccf8..a1bf590 100644
--- a/hotel-management/src/components/AppLayout/__snapshots__/AppLayout.test.tsx.snap
+++ b/hotel-management/src/components/AppLayout/__snapshots__/AppLayout.test.tsx.snap
@@ -16,6 +16,7 @@ exports[`AppLayout Should render correctly 1`] = `
>
+
+
+
+