Revert changes to make test work in CI (#110)

* Revert " Add any casting to fix TypeScript bug  (#109)"

This reverts commit 535ba9b242.

* Revert "Add userAgent casting (#108)"

This reverts commit 17d5bba990.

* Revert "Extract userAgent variable to fix tests in Azure DevOps CI/CD (#107)"

This reverts commit 3807aff6af.
This commit is contained in:
Kamil Pajdzik 2019-05-10 11:31:37 -07:00 коммит произвёл GitHub
Родитель 535ba9b242
Коммит 773f4d9141
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 2 добавлений и 3 удалений

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

@ -2514,11 +2514,10 @@ describe("AzureServiceClient", () => {
describe("updateOptionsWithDefaultValues()", () => {
function assertOptionEqual(actual: AzureServiceClientOptions, expected: AzureServiceClientOptions) {
let actualUserAgent: string | undefined;
if (typeof actual.userAgent === "string") {
actualUserAgent = actual.userAgent!;
actualUserAgent = actual.userAgent;
} else if (typeof actual.userAgent === "function") {
actualUserAgent = (actual.userAgent! as any)("");
actualUserAgent = actual.userAgent("");
}
delete actual.userAgent;
delete expected.userAgent;