mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 01:47:48 +00:00
Add _.chain tests and ensure they pass.
Former-commit-id: e365b65da8a740383c975c7b904ad2156d1cc8ab
This commit is contained in:
17
test/test.js
17
test/test.js
@@ -338,6 +338,23 @@
|
||||
});
|
||||
}());
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('lodash.chain');
|
||||
|
||||
(function() {
|
||||
test('should return a wrapped value', function() {
|
||||
var actual = _.chain({ 'a': 0 });
|
||||
ok(actual instanceof _);
|
||||
});
|
||||
|
||||
test('should return the existing wrapper when chaining', function() {
|
||||
var wrapper = _({ 'a': 0 });
|
||||
equal(wrapper.chain(), wrapper);
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('cloning');
|
||||
|
||||
Reference in New Issue
Block a user