From 5c4318c1dd6df2584cbae49ced7a78bd85926164 Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik Date: Fri, 10 May 2019 10:09:26 -0700 Subject: [PATCH] Add any casting to fix TypeScript bug --- test/azureServiceClientTests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/azureServiceClientTests.ts b/test/azureServiceClientTests.ts index 7357583..b583dcd 100644 --- a/test/azureServiceClientTests.ts +++ b/test/azureServiceClientTests.ts @@ -2516,9 +2516,9 @@ describe("AzureServiceClient", () => { let actualUserAgent: string | undefined; if (typeof actual.userAgent === "string") { - actualUserAgent = (actual.userAgent! as string); + actualUserAgent = actual.userAgent!; } else if (typeof actual.userAgent === "function") { - actualUserAgent = (actual.userAgent! as ((defaultUserAgent: string) => string))(""); + actualUserAgent = (actual.userAgent! as any)(""); } delete actual.userAgent; delete expected.userAgent;