feature-toggles
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -11,3 +11,3 @@ var featureToggles = { | ||
try { | ||
var toggleArguments = slice.call(arguments, 1); | ||
var toggleArguments = Array.prototype.slice.call(arguments, 1); | ||
toggle = toggle.apply(this, toggleArguments); | ||
@@ -14,0 +14,0 @@ } |
@@ -153,2 +153,14 @@ var featureToggles = require('./index.js'); | ||
describe('which has a function with arguments as value which returns true', function() { | ||
beforeEach(function() { | ||
featureToggles.load({foo: function(a) { var b = 'bar'; return a === b; }}) | ||
}); | ||
it('should return true', function() { | ||
expect(featureToggles.isFeatureEnabled('foo', 'bar')).toBeTruthy(); | ||
}); | ||
}); | ||
}); | ||
@@ -172,2 +184,2 @@ | ||
}); | ||
}); |
{ | ||
"name": "feature-toggles", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Feature Toggles for JavaScript", | ||
@@ -10,5 +10,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"grunt": "0.4.1", | ||
"jasmine-node": "1.7.0" | ||
"grunt": "0.4.5", | ||
"jasmine-node": "1.14.5" | ||
} | ||
} |
9595
165