Fix existing test failures

This commit is contained in:
mabashian
2019-04-23 14:55:06 -04:00
parent 38bb4f3f3c
commit f57876b6d9
8 changed files with 73 additions and 13 deletions

View File

@@ -20,6 +20,7 @@ describe('<NotificationListItem />', () => {
toggleNotification={toggleNotification}
detailUrl="/foo"
notificationType="slack"
canToggleNotifications
/>
);
expect(wrapper.length).toBe(1);
@@ -33,6 +34,7 @@ describe('<NotificationListItem />', () => {
toggleNotification={toggleNotification}
detailUrl="/foo"
notificationType="slack"
canToggleNotifications
/>
);
wrapper.find('Switch').first().find('input').simulate('change');
@@ -47,6 +49,7 @@ describe('<NotificationListItem />', () => {
toggleNotification={toggleNotification}
detailUrl="/foo"
notificationType="slack"
canToggleNotifications
/>
);
wrapper.find('Switch').first().find('input').simulate('change');
@@ -61,6 +64,7 @@ describe('<NotificationListItem />', () => {
toggleNotification={toggleNotification}
detailUrl="/foo"
notificationType="slack"
canToggleNotifications
/>
);
wrapper.find('Switch').at(1).find('input').simulate('change');
@@ -75,6 +79,7 @@ describe('<NotificationListItem />', () => {
toggleNotification={toggleNotification}
detailUrl="/foo"
notificationType="slack"
canToggleNotifications
/>
);
wrapper.find('Switch').at(1).find('input').simulate('change');