-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added paths for metadata * Test update
- Loading branch information
Showing
9 changed files
with
105 additions
and
66 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import request from 'supertest' | ||
import express from 'express' | ||
import { router } from '../fhir' | ||
|
||
const app = express() | ||
app.use('/', router) | ||
|
||
describe('FHIR Routes', () => { | ||
it.skip('should return 200 OK for GET /metadata', async () => { | ||
const response = await request(app).get('/metadata') | ||
expect(response.status).toBe(200) | ||
}) | ||
|
||
it.skip('should return 400 Bad Request for GET with invalid resource type', async () => { | ||
const response = await request(app).get('/invalid-resource') | ||
expect(response.status).toBe(400) | ||
expect(response.body).toEqual({ message: 'Invalid resource type invalid-resource' }) | ||
}) | ||
|
||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import request from 'supertest' | ||
import express from 'express' | ||
import { router } from '../ips' | ||
|
||
const app = express() | ||
app.use('/', router) | ||
|
||
describe('IPS Routes', () => { | ||
|
||
it.skip('should return 200 OK for GET /metadata', async () => { | ||
|
||
|
||
const response = await request(app).get('/metadata') | ||
|
||
expect(response.status).toBe(200) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters