diff --git a/psf-memo-client/src/components/app-body/notifications/index.js b/psf-memo-client/src/components/app-body/notifications/index.js index 9946a18..2bd6858 100644 --- a/psf-memo-client/src/components/app-body/notifications/index.js +++ b/psf-memo-client/src/components/app-body/notifications/index.js @@ -19,6 +19,8 @@ import NotificationsPage from '../../../services/notifications-page' import PostThreadModal from '../../post-thread-modal' import NotificationEntry from './notification-entry' import '../../../App.css' +import '../../post-feed/post-feed.css' +import './notifications.css' const PAGE_SIZE = 50 @@ -123,7 +125,7 @@ function Notifications (props) { )} {ready && entries.length > 0 && ( -
+
{entries.map((entry) => ( { assert.match(html, /class="notification-entry-text"[^>]*><\/p>/) }) + +test('keeps the actor name in the card header instead of the body', () => { + const html = render(makeEntry()) + const body = html.match(/class="notification-entry-body"[^>]*>([\s\S]*?)<\/div>/) + + assert.ok(html.includes('class="notification-entry-header"')) + assert.ok(body) + assert.ok(body[1].includes('liked your post')) + assert.ok(!body[1].includes('alice')) + assert.ok(!body[1].includes(ALICE)) +})