-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #817 from OneCommunityGlobal/abi_getactionItem_tests
Abi Unit and Integration tests for getActionItem routes and Controllers
- Loading branch information
Showing
16 changed files
with
2,568 additions
and
6,175 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Check mark: ✅ | ||
Cross Mark: ❌ | ||
|
||
# Get Action Item | ||
|
||
> ## Positive case | ||
1. ❌ Receives a POST request in the **/api/userProfile** route | ||
2. ✅ Returns 200 if get actionItem successfully finds and removes the matching `ActionItem` | ||
|
||
> ## Negative case | ||
3. ❌ Returns error 404 if the API does not exist | ||
4. ✅ Returns 400 if any error occurs when finding an `ActionItem`. | ||
5. ✅ Returns 400 if no `ActionItem` is found | ||
6. ✅ Returns 400 if any error occurs when deleting an `ActionItem`. | ||
|
||
> ## Edge case | ||
1. ✅ Returns 400 if notificationdeleted method throws an error. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Check mark: ✅ | ||
Cross Mark: ❌ | ||
|
||
# Get Action Item | ||
|
||
> ## Positive case | ||
1. ❌ Receives a POST request in the **/api/userProfile** route | ||
2. ✅ Returns 200 if get actionItem successfully finds and edits the matching `ActionItem` | ||
|
||
> ## Negative case | ||
3. ❌ Returns error 404 if the API does not exist | ||
4. ✅ Returns 400 if any error occurs when finding an `ActionItem`. | ||
5. ✅ Returns 400 if no `ActionItem` is found | ||
6. ✅ Returns 400 if any error occurs when saving an edited `ActionItem`. | ||
|
||
> ## Edge case | ||
1. ✅ Returns 400 if notificationedited method throws an error. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Check mark: ✅ | ||
Cross Mark: ❌ | ||
|
||
# Get Action Item | ||
|
||
> ## Positive case | ||
1. ❌ Receives a POST request in the **/api/userProfile** route | ||
2. ✅ Returns 200 if get actionItem successfully finds a matching `ActionItem` | ||
|
||
> ## Negative case | ||
3. ❌ Returns error 404 if the API does not exist | ||
4. ✅ Returns 400 if any error occurs when finding an ActionItem. | ||
|
||
> ## Edge case | ||
1. ❌ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Check mark: ✅ | ||
Cross Mark: ❌ | ||
|
||
# Post Action Item | ||
|
||
> ## Positive case | ||
1. ❌ Receives a POST request in the **/api/userProfile** route | ||
2. ✅ Returns 200 if postactionItem is saved correctly | ||
|
||
> ## Negative case | ||
1. ❌ Returns error 404 if the API does not exist | ||
2. ✅ Returns 400 if any error occurs during save. | ||
|
||
> ## Edge case | ||
1. ✅ Returns 400 if notificationcreated method throws an error. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.