From eaac5e02c0b4fa5f862aa60837e2a6db7cc8ee04 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 18 Jun 2016 13:47:50 -0700 Subject: [PATCH] Add `fp.propertyOf` test. --- test/test-fp.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test/test-fp.js b/test/test-fp.js index 4a86c8154..1a92ecbb1 100644 --- a/test/test-fp.js +++ b/test/test-fp.js @@ -1699,6 +1699,21 @@ /*--------------------------------------------------------------------------*/ + QUnit.module('fp.propertyOf'); + + (function() { + QUnit.test('should be curried', function(assert) { + assert.expect(2); + + var object = { 'a': 1 }; + + assert.strictEqual(fp.propertyOf(object, 'a'), 1); + assert.strictEqual(fp.propertyOf(object)('a'), 1); + }); + }()); + + /*--------------------------------------------------------------------------*/ + QUnit.module('fp.pull'); (function() {