From 174f77161266a767946f9607c625a090ae44ca45 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 11 Oct 2015 21:34:50 -0700 Subject: [PATCH] Add `_.reverse` test. --- test/test.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/test.js b/test/test.js index 26c185066..6ec41cf3d 100644 --- a/test/test.js +++ b/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) {