From 3d328982503eeef8c0173faaf2d8a100c7c7d959 Mon Sep 17 00:00:00 2001 From: Bart Butler Date: Mon, 13 Feb 2017 22:25:46 -0800 Subject: [PATCH] tests cannot use ES6 features --- test/general/key.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/general/key.js b/test/general/key.js index 2b424a44..0e211c5f 100644 --- a/test/general/key.js +++ b/test/general/key.js @@ -881,10 +881,10 @@ var pgp_desktop_priv = openpgp.generateKey(opt).then(function(key) { key = key.key; - const expiration = key.getExpirationTime(); + var expiration = key.getExpirationTime(); expect(expiration).to.exist; - const actual_delta = (new Date(expiration) - new Date()) / 1000; + var actual_delta = (new Date(expiration) - new Date()) / 1000; expect(Math.abs(actual_delta - expect_delta)).to.be.below(60); done();