mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
d2b8aa9355
update the requester test utils
10 lines
326 B
TypeScript
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);
|
|
});
|
|
});
|