From 526b68f31a296fdc0b04ee586ad41c90c97548bd Mon Sep 17 00:00:00 2001 From: Bart van der Schoor Date: Tue, 1 Apr 2014 02:08:55 +0200 Subject: [PATCH] fixed some tests for npm module --- .../{assertion-error-tests.d.ts => assertion-error-tests.ts} | 4 ++-- .../{detect-indent-tests.d.ts => detect-indent-tests.ts} | 2 +- ...rce-map-support-tests.d.ts => source-map-support-tests.ts} | 0 source-map-support/source-map-support.d.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename assertion-error/{assertion-error-tests.d.ts => assertion-error-tests.ts} (68%) rename detect-indent/{detect-indent-tests.d.ts => detect-indent-tests.ts} (65%) rename source-map-support/{source-map-support-tests.d.ts => source-map-support-tests.ts} (100%) diff --git a/assertion-error/assertion-error-tests.d.ts b/assertion-error/assertion-error-tests.ts similarity index 68% rename from assertion-error/assertion-error-tests.d.ts rename to assertion-error/assertion-error-tests.ts index b2a33a307ac4a3..f03e9cb52e539c 100644 --- a/assertion-error/assertion-error-tests.d.ts +++ b/assertion-error/assertion-error-tests.ts @@ -10,6 +10,6 @@ function foo () { } e = new AssertionError(str); -e = new AssertionError(str, {a:1, b2}); -e = new AssertionError(str, {a:1, b2}, foo); +e = new AssertionError(str, {a:1, b:2}); +e = new AssertionError(str, {a:1, b:2}, foo); diff --git a/detect-indent/detect-indent-tests.d.ts b/detect-indent/detect-indent-tests.ts similarity index 65% rename from detect-indent/detect-indent-tests.d.ts rename to detect-indent/detect-indent-tests.ts index d56854ae09f5f6..4ee02471b8641e 100644 --- a/detect-indent/detect-indent-tests.d.ts +++ b/detect-indent/detect-indent-tests.ts @@ -1,4 +1,4 @@ -/// +/// import di = require('detect-indent'); diff --git a/source-map-support/source-map-support-tests.d.ts b/source-map-support/source-map-support-tests.ts similarity index 100% rename from source-map-support/source-map-support-tests.d.ts rename to source-map-support/source-map-support-tests.ts diff --git a/source-map-support/source-map-support.d.ts b/source-map-support/source-map-support.d.ts index c03c23d8517996..8d4e2257969d20 100644 --- a/source-map-support/source-map-support.d.ts +++ b/source-map-support/source-map-support.d.ts @@ -4,5 +4,5 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module 'source-map-support' { - export function install(); + export function install(): any; }