mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-23 22:27:34 -05:00
e61bd6c78f
* chore: update prettier@2.x * chore: prettier auto fix * chore: fake circleci we don't need it but I want make dissapear the error
16 lines
561 B
TypeScript
16 lines
561 B
TypeScript
import supertest from 'supertest';
|
|
|
|
import { HTTP_STATUS } from '@verdaccio/commons-api';
|
|
import { HEADER_TYPE, HEADERS } from '@verdaccio/dev-commons';
|
|
import { initializeServer } from './_helper';
|
|
|
|
describe('ping', () => {
|
|
test('should return the reply the ping', async () => {
|
|
return supertest(await initializeServer('ping.yaml'))
|
|
.get('/-/ping')
|
|
.set('Accept', HEADERS.JSON)
|
|
.expect(HEADER_TYPE.CONTENT_TYPE, HEADERS.JSON_CHARSET)
|
|
.expect(HTTP_STATUS.OK)
|
|
.then((response) => expect(response.body).toEqual({}));
|
|
});
|
|
});
|