Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/badges/tests.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
if (apiResponse.StatusCode == 200)
b = true;
answer = apiResponse.Body.Data;
if isfield(answer, 'documents') && isempty(answer.documents) && ~iscell(answer.documents)
answer.documents = {};
end
else
if isprop(apiResponse.Body, 'Data')
answer = apiResponse.Body.Data;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@
break; % Exit the main page loop
end
end
if isfield(answer, 'documents') && isempty(answer.documents) && ~iscell(answer.documents)
answer.documents = {};
end
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion tests/+ndi/+unittest/+cloud/DocumentsTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ function testBulkUploadAndDownload(testCase)
narrative(end+1) = "Bulk upload API call failed with an error: " + ME.message;
end

msg_upload = "Bulk upload verification failed. Report: " + jsonencode(report_upload);
msg_upload = ndi.unittest.cloud.APIMessage(narrative, b_upload, report_upload, [], []);
testCase.verifyTrue(b_upload, msg_upload);
narrative(end+1) = "Bulk upload successful.";

Expand Down