mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-19 22:58:38 +00:00
Use \n instead of \r\n for EOL when armoring (#1183)
This commit is contained in:
@@ -3110,7 +3110,7 @@ module.exports = () => describe('Key', function() {
|
||||
await packetlist.read(input.data, { SignaturePacket: openpgp.SignaturePacket });
|
||||
const armored = openpgp.armor(openpgp.enums.armor.publicKey, packetlist.write());
|
||||
|
||||
expect(revocationCertificate.replace(/^Comment: .*$\r\n/mg, '')).to.equal(armored.replace(/^Comment: .*$\r\n/mg, ''));
|
||||
expect(revocationCertificate.replace(/^Comment: .*$\n/mg, '')).to.equal(armored.replace(/^Comment: .*$\n/mg, ''));
|
||||
});
|
||||
|
||||
it('getRevocationCertificate() should have an appropriate comment', async function() {
|
||||
|
||||
Reference in New Issue
Block a user