From 37ade3080e6305ee5e329230044ea0167a937e34 Mon Sep 17 00:00:00 2001 From: Homa Wong Date: Thu, 31 Mar 2016 11:15:48 -0700 Subject: [PATCH] Update index-tests.ts --- resolve-from/index-tests.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/resolve-from/index-tests.ts b/resolve-from/index-tests.ts index 6333f1450..a1f5480ff 100644 --- a/resolve-from/index-tests.ts +++ b/resolve-from/index-tests.ts @@ -1,5 +1,6 @@ +/// + // Much better testing in https://github.com/typed-typings/typed-resolve-from - -import resolveFrom = require('resolve-from'); - -console.log(typeof resolveFrom === 'function'); +if (typeof resolveFrom !== 'function') { + throw new Error('resolveFrom is not a function'); +}