+ >
+ )
+}
+
+export default NotificationsList
diff --git a/resources/assets/tests/views/widgets/NotificationsList.test.tsx b/resources/assets/tests/views/widgets/NotificationsList.test.tsx
new file mode 100644
index 00000000..62c50afd
--- /dev/null
+++ b/resources/assets/tests/views/widgets/NotificationsList.test.tsx
@@ -0,0 +1,66 @@
+import React from 'react'
+import { render, fireEvent, wait } from '@testing-library/react'
+import { t } from '@/scripts/i18n'
+import * as fetch from '@/scripts/net'
+import NotificationsList, {
+ Notification,
+} from '@/views/widgets/NotificationsList'
+
+jest.mock('@/scripts/net')
+
+beforeEach(() => {
+ document.body.innerHTML = ''
+})
+
+function createContainer(notifications: Notification[]) {
+ const container = document.createElement('div')
+ container.dataset.notifications = JSON.stringify(notifications)
+ container.dataset.t = 'no unread'
+ document.body.appendChild(container)
+}
+
+test('should not throw if element does not exist', () => {
+ render(