From e57da0eaf200b0e7eae56b4824f977001accc924 Mon Sep 17 00:00:00 2001 From: Brian Zengel Date: Fri, 18 Oct 2013 22:11:28 -0400 Subject: [PATCH] Test cleanup: removing redundant/old tests --- lodash/lodash-tests.ts | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 07a88d1d0..2ab648095 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -399,9 +399,6 @@ _.forEach(saves, function(type) { //WHAT'S LEFT //////////////////////////////////////////////////////////////////////////////////////// -var listOfPlays = [{ title: "Cymbeline", author: "Shakespeare", year: 1611 }, { title: "The Tempest", author: "Shakespeare", year: 1611 }, { title: "Other", author: "Not Shakespeare", year: 2012 }]; -_.where(listOfPlays, { author: "Shakespeare", year: 1611 }); - // _.indexBy(stooges, 'age')['40'].age; // _(stooges).indexBy('age')['40'].name; // _(stooges) @@ -413,33 +410,6 @@ _.where(listOfPlays, { author: "Shakespeare", year: 1611 }); /////////////////////////////////////////////////////////////////////////////////////// - - - - - - - - -_.without([1, 2, 1, 0, 3, 1, 4], 0, 1); -_.union([1, 2, 3], [101, 2, 1, 10], [2, 1]); - -_.difference([1, 2, 3, 4, 5], [5, 2, 10]); -_.uniq([1, 2, 1, 3, 1, 4]); -_.zip(['moe', 'larry', 'curly'], [30, 40, 50], [true, false, false]); -var r = _.object<{ [key: string]: number }>(['moe', 'larry', 'curly'], [30, 40, 50]); -_.object([['moe', 30], ['larry', 40], ['curly', 50]]); - -_.lastIndexOf([1, 2, 3, 1, 2, 3], 2); -_.sortedIndex([10, 20, 30, 40, 50], 35); -_.range(10); -_.range(1, 11); -_.range(0, 30, 5); -_.range(0, 30, 5); -_.range(0); - -/////////////////////////////////////////////////////////////////////////////////////// - var func = function (greeting) { return greeting + ': ' + this.name }; // need a second var otherwise typescript thinks func signature is the above func type, // instead of the newly returned _bind => func type.