From 51363d2e62481891fa71ed5362ca8d17f11bc50d Mon Sep 17 00:00:00 2001 From: mscharlock Date: Fri, 14 Sep 2018 15:13:54 -0700 Subject: [PATCH] update to tests so it now runs --- .../custom-functions-runtime-tests.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/types/custom-functions-runtime/custom-functions-runtime-tests.ts b/types/custom-functions-runtime/custom-functions-runtime-tests.ts index 0cdec4960a..4882c6bcd2 100644 --- a/types/custom-functions-runtime/custom-functions-runtime-tests.ts +++ b/types/custom-functions-runtime/custom-functions-runtime-tests.ts @@ -2,8 +2,8 @@ function ADD10(n: number) { return n + 10; } -const CustomFunctionMappings: { - "addTen": ADD10(); +CustomFunctionMappings = { + "addTen": ADD10 }; async function getStockValues(ticker: string, handler: CustomFunctions.StreamingHandler) { @@ -30,4 +30,3 @@ async function getStockValuesNowWithNoCancelling(ticker: string) { } declare function pause(ms: number): Promise -n \ No newline at end of file