commit
f79ce008b7
|
@ -43,7 +43,7 @@ function getType(text) {
|
||||||
var header = text.match(reHeader);
|
var header = text.match(reHeader);
|
||||||
|
|
||||||
if (!header) {
|
if (!header) {
|
||||||
throw new Error('Unknow ASCII armor type');
|
throw new Error('Unknown ASCII armor type');
|
||||||
}
|
}
|
||||||
|
|
||||||
// BEGIN PGP MESSAGE, PART X/Y
|
// BEGIN PGP MESSAGE, PART X/Y
|
||||||
|
|
|
@ -128,7 +128,7 @@ describe("ASCII armor", function() {
|
||||||
'-----END PGP SIGNNATURE-----'].join('\n');
|
'-----END PGP SIGNNATURE-----'].join('\n');
|
||||||
|
|
||||||
msg = openpgp.cleartext.readArmored.bind(null, msg);
|
msg = openpgp.cleartext.readArmored.bind(null, msg);
|
||||||
expect(msg).to.throw(Error, /Unknow ASCII armor type/);
|
expect(msg).to.throw(Error, /Unknown ASCII armor type/);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Armor checksum validation', function () {
|
it('Armor checksum validation', function () {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user