mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-25 10:02:27 -04:00
* Test * Add pretty formatting * Fix Tests * Fix Tests * Fix Tests * Fix * Add pretty formatting fix * Fix * Test * Fix tests * Clean typeckech * Add prettier check * Fix api tsconfig * Fix api tsconfig * Fix tsconfig * Fix * Fix * Prettier
17 lines
521 B
TypeScript
17 lines
521 B
TypeScript
import {health} from 'api/health'
|
|
import {AuthedUser} from 'api/helpers/endpoint'
|
|
|
|
describe('health', () => {
|
|
describe('when given valid input', () => {
|
|
it('should return the servers status(Health)', async () => {
|
|
const mockProps = {} as any
|
|
const mockAuth = {uid: '321'} as AuthedUser
|
|
const mockReq = {} as any
|
|
|
|
const result: any = await health(mockProps, mockAuth, mockReq)
|
|
expect(result.message).toBe('Server is working.')
|
|
expect(result.uid).toBe(mockAuth.uid)
|
|
})
|
|
})
|
|
})
|