mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-27 00:22:31 +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.
34 lines
923 B
JavaScript
34 lines
923 B
JavaScript
import testX25519 from './x25519.js';
|
|
import testUtil from './util.js';
|
|
import testBigInteger from './biginteger.js';
|
|
import testArmor from './armor.js';
|
|
import testPacket from './packet.js';
|
|
import testSignature from './signature.js';
|
|
import testKey from './key.js';
|
|
import testOpenPGP from './openpgp.js';
|
|
import testConfig from './config.js';
|
|
import testOID from './oid.js';
|
|
import testNistECC from './ecc_nist.js';
|
|
import testSecp256k1 from './ecc_secp256k1.js';
|
|
import testBrainpool from './brainpool.js';
|
|
import testDecompression from './decompression.js';
|
|
import testStreaming from './streaming.js';
|
|
|
|
export default () => describe('General', function () {
|
|
testX25519();
|
|
testUtil();
|
|
testBigInteger();
|
|
testArmor();
|
|
testPacket();
|
|
testSignature();
|
|
testKey();
|
|
testOpenPGP();
|
|
testConfig();
|
|
testOID();
|
|
testNistECC();
|
|
testSecp256k1();
|
|
testBrainpool();
|
|
testDecompression();
|
|
testStreaming();
|
|
});
|