Wrap fp.getOr test in an IIFE.

This commit is contained in:
John-David Dalton
2016-03-13 15:30:32 -07:00
parent 4d185ae7b5
commit f3279b7ee1

View File

@@ -1105,12 +1105,14 @@
QUnit.module('fp.getOr');
QUnit.test('should accept a `defaultValue` param', function(assert) {
assert.expect(1);
(function() {
QUnit.test('should accept a `defaultValue` param', function(assert) {
assert.expect(1);
var actual = fp.getOr('default')('path')({});
assert.strictEqual(actual, 'default');
});
var actual = fp.getOr('default')('path')({});
assert.strictEqual(actual, 'default');
});
}());
/*--------------------------------------------------------------------------*/