mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 07:50:31 +00:00
add error pathway and test case for validation
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
// Not an actual response snapshot
|
||||
// Simulate a case where `all` property of response is unavailable
|
||||
export const fetchSystemDataFailedResponse = {
|
||||
"error": "no systems",
|
||||
};
|
||||
@@ -1,4 +1,4 @@
|
||||
export const getAllSystemsResponse = {
|
||||
export const fetchSystemDataSuccessfulResponse = {
|
||||
"all": [
|
||||
{
|
||||
"fullname": "Chapman University",
|
||||
Reference in New Issue
Block a user