mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37:49 +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');
|
||||
|
||||
(function() {
|
||||
|
||||
Reference in New Issue
Block a user