Add fp.getOr test.

This commit is contained in:
John-David Dalton
2016-02-02 08:22:30 -08:00
parent 7dd5549b05
commit 30339cfd86

View File

@@ -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');
});
/*--------------------------------------------------------------------------*/