mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-01-06 22:40:26 -05:00
06f68eb0e7
* chore: migrate api package * Update distTag.spec.ts * fix storage test * Update server.ts * migrate search package * chore: migrate plugin local-storage
18 lines
578 B
TypeScript
18 lines
578 B
TypeScript
import supertest from 'supertest';
|
|
import { describe, expect, test } from 'vitest';
|
|
|
|
import { HEADERS, HEADER_TYPE, HTTP_STATUS } from '@verdaccio/core';
|
|
|
|
import { initializeServer } from './_helper';
|
|
|
|
describe('ping', () => {
|
|
test('should return the reply the ping', async () => {
|
|
const app = await initializeServer('ping.yaml');
|
|
const response = await supertest(app)
|
|
.get('/-/ping')
|
|
.set('Accept', HEADERS.JSON)
|
|
.expect(HEADER_TYPE.CONTENT_TYPE, HEADERS.JSON_CHARSET)
|
|
.expect(HTTP_STATUS.OK);
|
|
expect(response.body).toEqual({});
|
|
});
|
|
});
|