diff options
author | Maximilian Krambach <[email protected]> | 2018-06-06 11:05:53 +0000 |
---|---|---|
committer | Maximilian Krambach <[email protected]> | 2018-06-06 11:05:53 +0000 |
commit | bfd3799d39df265882deedeee083fd5246a2f35d (patch) | |
tree | bfee0a85d6373fa578de075cbce4d26ddced14e4 /lang/js/BrowserTestExtension/tests/startup.js | |
parent | js: implement import/delete Key, some fixes (diff) | |
download | gpgme-bfd3799d39df265882deedeee083fd5246a2f35d.tar.gz gpgme-bfd3799d39df265882deedeee083fd5246a2f35d.zip |
js: code cleanup (eslint)
--
* trying to stick to eslint from now on for readability
* As some attribution was lost in previous git confusions, I added my
name into some of the licence headers
Diffstat (limited to '')
-rw-r--r-- | lang/js/BrowserTestExtension/tests/startup.js | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/lang/js/BrowserTestExtension/tests/startup.js b/lang/js/BrowserTestExtension/tests/startup.js index 7d13ea47..d434b6d4 100644 --- a/lang/js/BrowserTestExtension/tests/startup.js +++ b/lang/js/BrowserTestExtension/tests/startup.js @@ -16,25 +16,31 @@ * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, see <http://www.gnu.org/licenses/>. * SPDX-License-Identifier: LGPL-2.1+ + * + * Author(s): + * Maximilian Krambach <[email protected]> */ - describe('GPGME context', function(){ +/* global describe, it, expect, Gpgmejs */ +/* global inputvalues */ + +describe('GPGME context', function(){ it('Starting a GpgME instance', function(done){ let prm = Gpgmejs.init(); prm.then( - function(context){ - expect(context).to.be.an('object'); - expect(context.encrypt).to.be.a('function'); - expect(context.decrypt).to.be.a('function'); - done(); - }); + function(context){ + expect(context).to.be.an('object'); + expect(context.encrypt).to.be.a('function'); + expect(context.decrypt).to.be.a('function'); + done(); + }); }); }); describe('GPGME does not start with invalid parameters', function(){ for (let i=0; i < inputvalues.init.invalid_startups.length; i++){ it('Parameter '+ i, function(done){ - let prm = Gpgmejs.init(inputvalues.init.invalid_startups[i]); + let prm = Gpgmejs.init(inputvalues.init.invalid_startups[i]); prm.then(function(context){ expect(context).to.be.undefined; done(); @@ -43,6 +49,6 @@ describe('GPGME does not start with invalid parameters', function(){ expect(error.code).to.equal('PARAM_WRONG'); done(); }); - }) + }); } });
\ No newline at end of file |