Skip to content

Commit

Permalink
change test in test
Browse files Browse the repository at this point in the history
  • Loading branch information
fzhao99 committed Jan 17, 2025
1 parent 8f7ef1f commit ecac390
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions query-connector/src/app/tests/integration/api-query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe("POST Query FHIR Server", () => {
expect(body.issue[0].diagnostics).toBe(MISSING_PATIENT_IDENTIFIERS);
});

it("should return an OperationOutcome if the use_case or fhir_server is missing", async () => {
it("should return an OperationOutcome if the query_name or fhir_server is missing", async () => {
const request = createNextRequest(PatientResource, new URLSearchParams());
const response = await POST(request);
const body = await response.json();
Expand All @@ -76,7 +76,9 @@ describe("POST Query FHIR Server", () => {
it("should return an OperationOutcome if the fhir_server is not valid", async () => {
const request = createNextRequest(
PatientResource,
new URLSearchParams("use_case=syphilis&fhir_server=invalid"),
new URLSearchParams(
"query_name=Syphilis%20case%20investigation&fhir_server=invalid",
),
);
const response = await POST(request);
const body = await response.json();
Expand Down

0 comments on commit ecac390

Please sign in to comment.