diff --git a/tests/unit/pages/chat/messages-list/MessagesList.spec.jsx b/tests/unit/pages/chat/messages-list/MessagesList.spec.jsx
index 33586602ee..bab77851a4 100644
--- a/tests/unit/pages/chat/messages-list/MessagesList.spec.jsx
+++ b/tests/unit/pages/chat/messages-list/MessagesList.spec.jsx
@@ -10,7 +10,7 @@ vi.mock('~/components/typing-block/TypingBlock', () => ({
default: vi.fn(() =>
Typing animation
)
}))
-vi.spyOn(window, "getComputedStyle").mockReturnValue(new CSSStyleDeclaration)
+vi.spyOn(window, 'getComputedStyle').mockReturnValue(new CSSStyleDeclaration())
global.IntersectionObserver = vi.fn().mockImplementation((callback) => ({
observe: vi.fn(),
@@ -78,4 +78,17 @@ describe('MessagesList component', () => {
)
expect(screen.getByText(/2024/i)).toBeInTheDocument()
})
+
+ it('loader should be render', () => {
+ renderWithProviders(
+
+ )
+ const loader = screen.getByTestId('loader')
+
+ expect(loader).toBeInTheDocument()
+ })
})