mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Add fp.propertyOf test.
This commit is contained in:
@@ -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');
|
QUnit.module('fp.pull');
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user