add test coverage for api notification mixin

This commit is contained in:
Jake McDermott
2019-06-14 09:24:54 -04:00
parent e72f0bcfd4
commit 4aa4490933
3 changed files with 38 additions and 1 deletions

View File

@@ -51,7 +51,7 @@ const NotificationsMixin = (parent) => class extends parent {
}
if (notificationType === 'error' && associationState === false) {
return this.disassociateNotificationTemplatesSuccess(resourceId, notificationId);
return this.disassociateNotificationTemplatesError(resourceId, notificationId);
}
throw new Error(`Unsupported notificationType, associationState combination: ${notificationType}, ${associationState}`);