mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-30 22:34:10 -05:00
a7ba76423e
* test: add test for whoami * Update middleware.ts * test for user api * more test for user api * remove repeated code * refactor * Update index.spec.ts * add package test refactor others * chore: upgrade deps * chore: add test for package * chore: update test * update lock file * Update ci.yml * Update ci.yml * Update package.spec.ts * chore: update ci settings * chore: update deps * chore: update test
16 lines
537 B
TypeScript
16 lines
537 B
TypeScript
import supertest from 'supertest';
|
|
|
|
import {initializeServer } from './_helper';
|
|
import { HTTP_STATUS } from '@verdaccio/commons-api';
|
|
import {HEADER_TYPE, HEADERS} from '@verdaccio/dev-commons';
|
|
|
|
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({}));
|
|
});
|
|
});
|