volos-quota-apigee
Advanced tools
Comparing version 0.9.1 to 0.9.2
{ | ||
"name": "volos-quota-apigee", | ||
"version": "0.9.1", | ||
"version": "0.9.2", | ||
"main": "lib/apigeequota.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -27,5 +27,7 @@ /**************************************************************************** | ||
var Spi = require('..'); | ||
var config = require('../../../common/testconfig-apigee').config; | ||
var config = require('../../../testconfig/testconfig-apigee').config; | ||
var assert = require('assert'); | ||
var random = Math.random(); | ||
var _ = require('underscore'); | ||
var should = require('should'); | ||
@@ -48,7 +50,4 @@ describe('Apigee', function() { | ||
// clone & extend hash | ||
var _extend = require('util')._extend; | ||
function extend(a, b) { | ||
var options = _extend({}, a); | ||
options = _extend(options, b); | ||
return options; | ||
return _.extend({}, a, b); | ||
} | ||
@@ -73,2 +72,3 @@ var pm; | ||
checkResult(result, 2, 1, true); | ||
result.expiryTime.should.be.approximately(Date.now() + 60000, 10000); | ||
@@ -105,2 +105,3 @@ var offset = result.expiryTime - (Date.now() + 60000); | ||
checkResult(result, 2, 1, true); | ||
result.expiryTime.should.be.approximately(Date.now() + 60000, 10000); | ||
@@ -107,0 +108,0 @@ pm.apply({ |
12317
269