mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Wrap fp.getOr test in an IIFE.
This commit is contained in:
@@ -1105,12 +1105,14 @@
|
|||||||
|
|
||||||
QUnit.module('fp.getOr');
|
QUnit.module('fp.getOr');
|
||||||
|
|
||||||
QUnit.test('should accept a `defaultValue` param', function(assert) {
|
(function() {
|
||||||
assert.expect(1);
|
QUnit.test('should accept a `defaultValue` param', function(assert) {
|
||||||
|
assert.expect(1);
|
||||||
|
|
||||||
var actual = fp.getOr('default')('path')({});
|
var actual = fp.getOr('default')('path')({});
|
||||||
assert.strictEqual(actual, 'default');
|
assert.strictEqual(actual, 'default');
|
||||||
});
|
});
|
||||||
|
}());
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user