Add fp.propertyOf test.

This commit is contained in:
John-David Dalton
2016-06-18 13:47:50 -07:00
parent 3bd5703bdb
commit eaac5e02c0

View File

@@ -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() {