Files
Compass/backend/api/tests/unit/health-unit.test.ts
Martin Braquet ba9b3cfb06 Add pretty formatting (#29)
* 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
2026-02-20 17:32:27 +01:00

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)
})
})
})