From 0ffe0321026f23b85413c941cc5e200724b5158a Mon Sep 17 00:00:00 2001 From: Boris Yankov Date: Mon, 26 Aug 2013 00:16:13 +0300 Subject: [PATCH] Fix typo in test runner --- _infrastructure/tests/runner.js | 2 +- _infrastructure/tests/runner.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_infrastructure/tests/runner.js b/_infrastructure/tests/runner.js index 502b15e93..855cffa69 100644 --- a/_infrastructure/tests/runner.js +++ b/_infrastructure/tests/runner.js @@ -667,7 +667,7 @@ var DefinitelyTyped; if (isNaN(day_diff) || day_diff < 0 || day_diff >= 31) return; - return (day_diff == 0 && (diff < 60 && (diff + " secconds") || diff < 120 && "1 minute" || diff < 3600 && Math.floor(diff / 60) + " minutes" || diff < 7200 && "1 hour" || diff < 86400 && Math.floor(diff / 3600) + " hours") || day_diff == 1 && "Yesterday" || day_diff < 7 && day_diff + " days" || day_diff < 31 && Math.ceil(day_diff / 7) + " weeks"); + return (day_diff == 0 && (diff < 60 && (diff + " seconds") || diff < 120 && "1 minute" || diff < 3600 && Math.floor(diff / 60) + " minutes" || diff < 7200 && "1 hour" || diff < 86400 && Math.floor(diff / 3600) + " hours") || day_diff == 1 && "Yesterday" || day_diff < 7 && day_diff + " days" || day_diff < 31 && Math.ceil(day_diff / 7) + " weeks"); }; Timer.prototype.start = function () { diff --git a/_infrastructure/tests/runner.ts b/_infrastructure/tests/runner.ts index c3d2a9da4..bd60ebe7a 100644 --- a/_infrastructure/tests/runner.ts +++ b/_infrastructure/tests/runner.ts @@ -111,7 +111,7 @@ module DefinitelyTyped { return; return (day_diff == 0 && ( - diff < 60 && (diff + " secconds") || + diff < 60 && (diff + " seconds") || diff < 120 && "1 minute" || diff < 3600 && Math.floor( diff / 60 ) + " minutes" || diff < 7200 && "1 hour" ||