mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Update vendor/underscore and underscore tests.
This commit is contained in:
4
vendor/underscore/test/utility.js
vendored
4
vendor/underscore/test/utility.js
vendored
@@ -30,6 +30,10 @@
|
||||
equal(_.constant(moe)(), moe, 'should create a function that returns moe');
|
||||
});
|
||||
|
||||
test('noop', function() {
|
||||
strictEqual(_.noop('curly', 'larry', 'moe'), undefined, 'should always return undefined');
|
||||
});
|
||||
|
||||
test('property', function() {
|
||||
var moe = {name : 'moe'};
|
||||
equal(_.property('name')(moe), 'moe', 'should return the property with the given name');
|
||||
|
||||
Reference in New Issue
Block a user