diff options
| author | Maximilian Krambach <[email protected]> | 2018-08-20 13:12:01 +0000 | 
|---|---|---|
| committer | Maximilian Krambach <[email protected]> | 2018-08-20 13:12:01 +0000 | 
| commit | dd32daad0bb21e3d5567326d0b2e548ff8510431 (patch) | |
| tree | bbefa811b727f1246fee17a26c9f1c4440609003 /lang/js/BrowserTestExtension/tests/encryptTest.js | |
| parent | js: revert changes to class read/write restriction (diff) | |
| download | gpgme-dd32daad0bb21e3d5567326d0b2e548ff8510431.tar.gz gpgme-dd32daad0bb21e3d5567326d0b2e548ff8510431.zip | |
js: add and apply eslint rules
--
* mainly spacing, see .eslintrc.json for details
Diffstat (limited to 'lang/js/BrowserTestExtension/tests/encryptTest.js')
| -rw-r--r-- | lang/js/BrowserTestExtension/tests/encryptTest.js | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/lang/js/BrowserTestExtension/tests/encryptTest.js b/lang/js/BrowserTestExtension/tests/encryptTest.js index 3ead8153..a242af5f 100644 --- a/lang/js/BrowserTestExtension/tests/encryptTest.js +++ b/lang/js/BrowserTestExtension/tests/encryptTest.js @@ -27,9 +27,9 @@  describe('Encryption', function () {      let context = null;      const good_fpr = inputvalues.encrypt.good.fingerprint; -    before(function(done){ +    before(function (done){          const prm = Gpgmejs.init(); -        prm.then(function(gpgmejs){ +        prm.then(function (gpgmejs){              context = gpgmejs;              done();          }); @@ -64,7 +64,7 @@ describe('Encryption', function () {          const data = inputvalues.encrypt.good.data;          context.encrypt(data,null).then(function (answer) {              expect(answer).to.be.undefined; -        }, function(error){ +        }, function (error){              expect(error).to.be.an('Error');              expect(error.code).to.equal('MSG_INCOMPLETE');              done(); @@ -86,7 +86,7 @@ describe('Encryption', function () {          const bad_fpr = inputvalues.encrypt.bad.fingerprint;          context.encrypt(data, bad_fpr).then(function (answer) {              expect(answer).to.be.undefined; -        }, function(error){ +        }, function (error){              expect(error).to.be.an('Error');              expect(error.code).to.not.be.undefined;              expect(error.code).to.equal('GNUPG_ERROR'); @@ -98,7 +98,7 @@ describe('Encryption', function () {          const data = fixedLengthString(65);          context.encrypt(data, good_fpr).then(function (answer) {              expect(answer).to.be.undefined; -        }, function(error){ +        }, function (error){              expect(error).to.be.an.instanceof(Error);              // TODO: there is a 64 MB hard limit at least in chrome at:              // chromium//extensions/renderer/messaging_util.cc: | 
