mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-06-12 17:16:41 +00:00
tests cannot use ES6 features
This commit is contained in:
parent
aecb8eaf35
commit
3d32898250
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user