mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
154b2ecd34
* migrate api package * migrate auth * migrate config * refactor: remove @verdaccio/commons-api in favor @verdaccio/core * fix lint * relocate pkg * relocate pkg * fix tsconfig
15 lines
513 B
TypeScript
15 lines
513 B
TypeScript
import supertest from 'supertest';
|
|
|
|
import { HEADER_TYPE, HEADERS, HTTP_STATUS } from '@verdaccio/core';
|
|
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({}));
|
|
});
|
|
});
|