Add any casting to fix TypeScript bug

This commit is contained in:
Kamil Pajdzik 2019-05-10 10:09:26 -07:00
Родитель c25bd347de
Коммит 5c4318c1dd
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;