Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

add: tests for loader

kruzhambus395938ee1483
diff --git a/src/ui/test/Loader.test.tsx b/src/ui/test/Loader.test.tsx
new file mode 100644
index 000000000..5cae6b806
--- /dev/null
+++ b/src/ui/test/Loader.test.tsx
@@ -0,0 +1,12 @@
+/* eslint-disable testing-library/prefer-screen-queries */
+/* eslint-disable import/no-extraneous-dependencies */
+import React from 'react'
+import { render } from '@testing-library/react'
+import Loader from '../Loader'
+
+describe('Loader', () => {
+ it('renders the loader with the "Loading..." text', () => {
+ const { getByText } = render(<Loader />)
+ expect(getByText('Loading...')).toBeInTheDocument()
+ })
+})