0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00
logto/packages/core/src/routes/status.test.ts
simeng-li d2b8aa9355
test(core): update the requester test utils (#274)
update the requester test utils
2022-02-23 11:09:26 +08:00

10 lines
326 B
TypeScript

import { createRequester } from '@/utils/test-utils';
import statusRoutes from './status';
describe('status router', () => {
const requester = createRequester({ anonymousRoutes: statusRoutes });
it('GET /status', async () => {
await expect(requester.get('/status')).resolves.toHaveProperty('status', 204);
});
});