Add _.reverse test.

This commit is contained in:
John-David Dalton
2015-10-11 21:34:50 -07:00
parent 4f0a5e937b
commit 174f771612

View File

@@ -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) {