mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-06 14:16:42 +00:00
remove unnecessary trims
This commit is contained in:
parent
438d47f634
commit
01abfc507d
@ -178,7 +178,7 @@ describe('X25519 Cryptography', function () {
|
||||
const result = await openpgp.verify({ publicKeys: [pub], message: msg});
|
||||
|
||||
expect(result).to.exist;
|
||||
expect(result.data.trim()).to.equal(randomData);
|
||||
expect(result.data).to.equal(randomData);
|
||||
expect(result.signatures).to.have.length(1);
|
||||
expect(result.signatures[0].valid).to.be.true;
|
||||
});
|
||||
@ -208,7 +208,7 @@ describe('X25519 Cryptography', function () {
|
||||
const result = await openpgp.decrypt({ privateKeys: nightPrivate, publicKeys: [lightPublic], message: message });
|
||||
|
||||
expect(result).to.exist;
|
||||
expect(result.data.trim()).to.equal(randomData);
|
||||
expect(result.data).to.equal(randomData);
|
||||
expect(result.signatures).to.have.length(1);
|
||||
expect(result.signatures[0].valid).to.be.true;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user