Revert changes to make test work in CI (#110)
* Revert " Add any casting to fix TypeScript bug (#109)" This reverts commit535ba9b242
. * Revert "Add userAgent casting (#108)" This reverts commit17d5bba990
. * Revert "Extract userAgent variable to fix tests in Azure DevOps CI/CD (#107)" This reverts commit3807aff6af
.
This commit is contained in:
Родитель
535ba9b242
Коммит
773f4d9141
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче