mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-13 22:48:31 -05:00
13310814da
* #2606 add prettier plugin sort imprts * #2606 update pnpm-lock.yaml * #2606 update eslint rules * #2606 fixes website directory formatting Co-authored-by: Ayush Sharma <ayush.sharma@trivago.com>
16 lines
514 B
TypeScript
16 lines
514 B
TypeScript
import supertest from 'supertest';
|
|
|
|
import { HEADERS, HEADER_TYPE, 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({}));
|
|
});
|
|
});
|