Skip to content

Commit f699567

Browse files
committed
remove ukcore check from test call
1 parent 947534a commit f699567

1 file changed

Lines changed: 9 additions & 25 deletions

File tree

src/common.js.ts

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -695,10 +695,7 @@ export function buildCapabilityStatement(dir: string, file, api: any | void) {
695695
}
696696
}
697697

698-
699-
700-
701-
export function testFile( folderName: string, fileName: string, failOnWarning :boolean, isUKore: boolean)
698+
export function testFile( folderName: string, fileName: string, failOnWarning :boolean)
702699
{
703700
let client: AxiosInstance;
704701
let file = folderName + "/" + fileName;
@@ -813,27 +810,14 @@ export function testFile( folderName: string, fileName: string, failOnWarning :b
813810
}
814811
}
815812
if (validate) {
816-
if (!isUKore) {
817-
test('FHIR Validation', async () => {
818-
const response = await client.post('/$validate', resource).catch(function (error) {
819-
return error.response
820-
})
821-
expect(response.status === 200 || response.status === 400).toBeTruthy()
822-
resourceChecks(response, failOnWarning)
823-
expect(response.status).toEqual(200)
824-
});
825-
} else {
826-
827-
test('FHIR Validation - UKCore', async () => {
828-
const response = await client.post('/$validate?profile=https://fhir.hl7.org.uk/StructureDefinition/UKCore-' + json.resourceType, resource).catch(function (error) {
829-
return error.response
830-
})
831-
expect(response.status === 200 || response.status === 400).toBeTruthy()
832-
resourceChecks(response, failOnWarning)
833-
expect(response.status).toEqual(200)
834-
})
835-
}
836-
813+
test('FHIR Validation', async () => {
814+
const response = await client.post('/$validate', resource).catch(function (error) {
815+
return error.response
816+
})
817+
expect(response.status === 200 || response.status === 400).toBeTruthy()
818+
resourceChecks(response, failOnWarning)
819+
expect(response.status).toEqual(200)
820+
});
837821
}
838822
}
839823
)

0 commit comments

Comments
 (0)