Skip to content

Commit

Permalink
increase test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyEsin committed Nov 7, 2022
1 parent ae119c6 commit f637110
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 24 deletions.
6 changes: 0 additions & 6 deletions dist/crypto-pro.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/crypto-pro.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/crypto-pro.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/crypto-pro.min.js.map

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions lib/crypto-pro.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/crypto-pro.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/api/decryptEnvelopedData.test.ts
Expand Up @@ -2,7 +2,7 @@ import 'cadesplugin';
import { decryptEnvelopedData } from './decryptEnvelopedData';
import { _getCadesCert } from '../helpers/_getCadesCert';

const executionSteps = [Symbol('step 0'), Symbol('step 1')];
const executionSteps = [Symbol('step 0')];

const executionFlow = {
[executionSteps[0]]: {
Expand Down
7 changes: 0 additions & 7 deletions src/api/decryptEnvelopedData.ts
Expand Up @@ -21,13 +21,6 @@ export const decryptEnvelopedData = _afterPluginsLoaded(
void (
__cadesAsyncToken__ + cadesEnvelopedData.propset_ContentEncoding(cadesplugin.CADESCOM_BASE64_TO_BINARY)
);
} catch (error) {
console.error(error);

throw new Error(_extractMeaningfulErrorMessage(error) || 'Ошибка при инициализации расшифрования');
}

try {
void (__cadesAsyncToken__ + cadesEnvelopedData.Decrypt(envelopedData));
decryptedMessage = cadesEnvelopedData.Content;
} catch (error) {
Expand Down

0 comments on commit f637110

Please sign in to comment.