mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Add fp convert test for unconverted methods.
This commit is contained in:
@@ -288,6 +288,22 @@
|
|||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
QUnit.module('method.convert');
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
QUnit.test('should exist on unconverted methods', function(assert) {
|
||||||
|
assert.expect(2);
|
||||||
|
|
||||||
|
var array = [],
|
||||||
|
isArray = fp.isArray.convert({ 'curry': true });
|
||||||
|
|
||||||
|
assert.strictEqual(fp.isArray(array), true);
|
||||||
|
assert.strictEqual(isArray()(array), true);
|
||||||
|
});
|
||||||
|
}());
|
||||||
|
|
||||||
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
QUnit.module('convert methods');
|
QUnit.module('convert methods');
|
||||||
|
|
||||||
_.each(['fp.convert', 'method.convert'], function(methodName) {
|
_.each(['fp.convert', 'method.convert'], function(methodName) {
|
||||||
|
|||||||
Reference in New Issue
Block a user