aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Brunschwig <[email protected]>2021-06-05 18:11:05 +0200
committerPatrick Brunschwig <[email protected]>2021-06-05 18:11:05 +0200
commit8eb5986ee7c1c099c609652b9ae1f5c7aad2e7a0 (patch)
tree94dc6641be00a4dabb7efc955df9ebc0aeb73cf5
parent6c98c2039d7669e8a103dfb8796fbe2f2d2c841d (diff)
downloadenigmail-8eb5986ee7c1c099c609652b9ae1f5c7aad2e7a0.tar.gz
enigmail-8eb5986ee7c1c099c609652b9ae1f5c7aad2e7a0.tar.bz2
enigmail-8eb5986ee7c1c099c609652b9ae1f5c7aad2e7a0.zip
fixed test cases
-rw-r--r--package/tests/gpgme-test.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/tests/gpgme-test.js b/package/tests/gpgme-test.js
index 85b74721..e91a07c5 100644
--- a/package/tests/gpgme-test.js
+++ b/package/tests/gpgme-test.js
@@ -153,7 +153,7 @@ test(withTestGpgHome(withEnigmail(asyncTest(async function testDecrypt(esvc, win
let pgpMsg = EnigmailArmor.splitArmoredBlocks(fileData)[0];
let result = await gpgmeApi.decrypt(pgpMsg, {});
- Assert.equal(result.statusFlags, EnigmailConstants.DECRYPTION_FAILED | EnigmailConstants.NO_SECKEY);
+ Assert.equal(result.statusFlags, EnigmailConstants.DECRYPTION_FAILED);
const secKeyFile = do_get_file("resources/dev-strike.sec", false);
let r = await gpgmeApi.importKeyFromFile(secKeyFile, false, null);
@@ -181,7 +181,7 @@ owE7rZbEEOfZI+yRmpOTr1CeX5SToscVkpFZrABEiQolqcUlCla6mlwA
-----END PGP MESSAGE-----`;
result = await gpgmeApi.decrypt(storedMsg, {});
- Assert.equal(result.statusFlags, 65536);
+ Assert.equal(result.statusFlags, EnigmailConstants.DECRYPTION_FAILED | EnigmailConstants.NODATA);
Assert.equal(result.exitCode, 1);
Assert.equal(result.sigDetails, "");
Assert.equal(result.decryptedData, "");
@@ -290,7 +290,7 @@ fsTKNmsBfsUHg/qzu+yD0e4bTuEKVsDcCg==
-----END PGP MESSAGE-----`;
result = await gpgmeApi.decrypt(badMdc, {});
- Assert.equal(result.statusFlags, EnigmailConstants.DECRYPTION_FAILED);
+ Assert.equal(result.statusFlags, EnigmailConstants.DECRYPTION_FAILED | EnigmailConstants.NODATA);
Assert.equal(result.exitCode, 1);
Assert.equal(result.decryptedData, "");