mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-15 09:06:25 +00:00
f611217289
Co-authored-by: Rhys Arkins <rhys@arkins.net> Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
22 lines
657 B
TypeScript
22 lines
657 B
TypeScript
import type { HttpResponse } from '../../util/http/types';
|
|
import { isArtifactoryServer } from './common';
|
|
|
|
describe('modules/datasource/common', () => {
|
|
it('is artifactory server invalid', () => {
|
|
const response: HttpResponse<string> = {
|
|
statusCode: 200,
|
|
body: 'test',
|
|
headers: { 'invalid-header': 'version' },
|
|
};
|
|
expect(isArtifactoryServer(response)).toBeFalse();
|
|
});
|
|
|
|
it('is artifactory server valid', () => {
|
|
const response: HttpResponse<string> = {
|
|
statusCode: 200,
|
|
body: 'test',
|
|
headers: { 'x-jfrog-version': 'version' },
|
|
};
|
|
expect(isArtifactoryServer(response)).toBeTrue();
|
|
});
|
|
});
|