mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Add _.reverse test.
This commit is contained in:
16
test/test.js
16
test/test.js
@@ -16074,6 +16074,22 @@
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('lodash.reverse');
|
||||
|
||||
(function() {
|
||||
QUnit.test('should reverse `array`', function(assert) {
|
||||
assert.expect(2);
|
||||
|
||||
var array = [1, 2, 3],
|
||||
actual = _.reverse(array);
|
||||
|
||||
assert.deepEqual(array, [3, 2, 1]);
|
||||
assert.strictEqual(actual, array);
|
||||
});
|
||||
}());
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
QUnit.module('round methods');
|
||||
|
||||
_.each(['ceil', 'floor', 'round'], function(methodName) {
|
||||
|
||||
Reference in New Issue
Block a user