From c797f83ca5f27a458424e7d606d8db53b6b25d21 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 3 Apr 2016 21:53:37 -0700 Subject: [PATCH] Add fp `convert` test for unconverted methods. --- test/test-fp.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/test-fp.js b/test/test-fp.js index d79d97f39..d119d3021 100644 --- a/test/test-fp.js +++ b/test/test-fp.js @@ -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'); _.each(['fp.convert', 'method.convert'], function(methodName) {