fixed broken Testcase for improperly formatted Armor Header

This commit is contained in:
Patrick Brunschwig 2017-08-19 22:07:36 +02:00
parent 93d823abb4
commit 79c8a83cea

View File

@ -104,7 +104,7 @@ describe("ASCII armor", function() {
var msg = getArmor(['Hash:SHA256']);
msg = openpgp.cleartext.readArmored.bind(null, msg);
expect(msg).to.throw(Error, /Improperly formatted armor header/);
msg = getArmor(['<script>: SHA256']);
msg = getArmor(['Ha sh: SHA256']);
msg = openpgp.cleartext.readArmored.bind(null, msg);
expect(msg).to.throw(Error, /Improperly formatted armor header/);
msg = getArmor(['Hash SHA256']);