Files
directus/tests/api/ping.test.ts
Rijk van Zanten eee8725140 Resolve transaction unreliability issues in schema alterations (#11279)
* Start with test setup

* Reorder operations in transaction

Prevent dead roaches

* Fix test post payload

* Fix tests for real now?
2022-02-03 20:34:00 -05:00

17 lines
402 B
TypeScript

import request from 'supertest';
import vendors from '../get-dbs-to-test';
import { getUrl } from '../config';
describe('/server', () => {
describe('/ping', () => {
it.each(vendors)('%s', async (vendor) => {
const response = await request(getUrl(vendor))
.get('/server/ping')
.expect('Content-Type', /text\/html/)
.expect(200);
expect(response.text).toBe('pong');
});
});
});