mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 15:27:50 +00:00
Add fp.getOr test.
This commit is contained in:
@@ -702,6 +702,16 @@
|
||||
});
|
||||
});
|
||||
});
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('fp.getOr');
|
||||
|
||||
QUnit.test('should accept a `defaultValue` param', function(assert) {
|
||||
assert.expect(1);
|
||||
|
||||
var actual = fp.getOr('default')('path')({});
|
||||
assert.strictEqual(actual, 'default');
|
||||
});
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user