Add placeholders to fp wrapper. [closes #1780]

This commit is contained in:
John-David Dalton
2016-01-13 22:06:11 -08:00
parent ff5f06b9f0
commit 7544166d11
3 changed files with 32 additions and 2 deletions

View File

@@ -563,6 +563,20 @@
/*--------------------------------------------------------------------------*/
QUnit.module('placeholder methods');
_.forOwn(mapping.placeholder, function(truthy, methodName) {
var func = fp[methodName];
QUnit.test('`_.' + methodName + '` should have a `placeholder` property', function(assert) {
assert.expect(1);
assert.ok(_.isObject(func.placeholder));
});
});
/*--------------------------------------------------------------------------*/
QUnit.module('fp.random');
(function() {