From b00ce34e909dffebdc4f54c28a7eff4fdccde581 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Mon, 17 Nov 2014 12:31:04 +0100 Subject: [PATCH] Typo: Unknow -> Unknown --- src/encoding/armor.js | 2 +- test/general/armor.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/encoding/armor.js b/src/encoding/armor.js index f7031a49..dcbb6209 100644 --- a/src/encoding/armor.js +++ b/src/encoding/armor.js @@ -43,7 +43,7 @@ function getType(text) { var header = text.match(reHeader); if (!header) { - throw new Error('Unknow ASCII armor type'); + throw new Error('Unknown ASCII armor type'); } // BEGIN PGP MESSAGE, PART X/Y diff --git a/test/general/armor.js b/test/general/armor.js index a0a654e3..69ce787f 100644 --- a/test/general/armor.js +++ b/test/general/armor.js @@ -128,7 +128,7 @@ describe("ASCII armor", function() { '-----END PGP SIGNNATURE-----'].join('\n'); 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 () {