All files / src/parsers parseV1.ts

100% Statements 1/1
100% Branches 0/0
100% Functions 0/0
100% Lines 1/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18                  3x                
import VerifierError from '../models/verifierError';
/**
 * deprecated
 * parseV1
 *
 * @param certificateJson
 * @returns {Certificate}
 */
export default function parseV1 (): void {
  throw new VerifierError(
    '',
    'Verification of v1 certificates is not supported by this component. ' +
    'See the python cert-verifier for v1.1 verification ' +
    'or the npm package cert-verifier-js-v1-legacy for v1.2 ' +
    '(https://www.npmjs.com/package/@blockcerts/cert-verifier-js-v1-legacy)'
  );
}