Merge pull request #268 from bantu/typo-unknow

Typo: Unknow -> Unknown
This commit is contained in:
Tankred Hase 2014-12-09 16:35:49 +01:00
commit f79ce008b7
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 () {