Forked from
Eclipse Projects / xfsc / Organization Credential Manager / OCM-Engine
385 commits behind the upstream repository.
-
Konstantin Tsabolov authored
* Upgraded the dependencies to the latest versions * Switched output to ESM format * Switched NestJS and Jest to SWC to improve speed of building and testing * Refactored TSConfig to remove tsconfig-paths * Updated imports in all files to reflect the change in TSConfig * Changed the linting rules (removed AirBnB config) * Fixed Prettier installation (added ignore file) * Fixed typing errors (mainly usage of any's) * Fixed the non-working E2E test P.S. None of the mentioned doesn't make sense alone, therefore a huge commit
Konstantin Tsabolov authored* Upgraded the dependencies to the latest versions * Switched output to ESM format * Switched NestJS and Jest to SWC to improve speed of building and testing * Refactored TSConfig to remove tsconfig-paths * Updated imports in all files to reflect the change in TSConfig * Changed the linting rules (removed AirBnB config) * Fixed Prettier installation (added ignore file) * Fixed typing errors (mainly usage of any's) * Fixed the non-working E2E test P.S. None of the mentioned doesn't make sense alone, therefore a huge commit
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
tsa.client.ts 462 B
import { TSAService } from '../../../common/constants.js';
import { PolicyReturnType } from '../../tsa.client.js';
const TSAClientServiceMock = jest.fn().mockReturnValue({
getPolicy: jest.fn().mockImplementation((url: string) => {
if (url.includes(TSAService.PRINCIPAL_CREDENTIAL_REQUEST)) {
return {
success: true,
returnData: true,
} as PolicyReturnType;
}
return {};
}),
});
export default TSAClientServiceMock;