Skip to content
Merged
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
5 changes: 4 additions & 1 deletion src/common.js.ts
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,10 @@ export function testFile( folderName: string, fileName: string, failOnWarning :b
const response = await client.post('/$validate', resource).catch(function (error) {
return error.response
})
expect(response.status === 200 || response.status === 400).toBeTruthy()
if (!response) {
console.error("FHIR call did not return a response object");
}
expect(response && (response.status === 200 || response.status === 400)).toBeTruthy();

//we can ignore warnings on retired resources - these would not be in a balloted package
if (json.status == 'retired') {
Expand Down