mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-03-30 15:08:32 +00:00

Mocha v10 requires the lib to be esm compliant. ESM mandates the use of file extensions in imports, so to minimize the changes (for now), we rely on the flag `experimental-specifier-resolution=node` and on `ts-node` (needed only for Node 20). Breaking changes: downstream bundlers might be affected by the package.json changes depending on how they load the library. NB: legacy package.json entrypoints are still available.
30 lines
675 B
JavaScript
30 lines
675 B
JavaScript
import testCipher from './cipher';
|
|
import testHash from './hash';
|
|
import testCrypto from './crypto';
|
|
import testElliptic from './elliptic';
|
|
import testECDH from './ecdh';
|
|
import testPKCS5 from './pkcs5';
|
|
import testAESKW from './aes_kw';
|
|
import testHKDF from './hkdf';
|
|
import testGCM from './gcm';
|
|
import testEAX from './eax';
|
|
import testOCB from './ocb';
|
|
import testRSA from './rsa';
|
|
import testValidate from './validate';
|
|
|
|
export default () => describe('Crypto', function () {
|
|
testCipher();
|
|
testHash();
|
|
testCrypto();
|
|
testElliptic();
|
|
testECDH();
|
|
testPKCS5();
|
|
testAESKW();
|
|
testHKDF();
|
|
testGCM();
|
|
testEAX();
|
|
testOCB();
|
|
testRSA();
|
|
testValidate();
|
|
});
|