From 4c97c47d63d697b3927b1ff1c46c1e652553e6cd Mon Sep 17 00:00:00 2001 From: Kamil Pajdzik <41709775+kpajdzik@users.noreply.github.com> Date: Thu, 6 Jun 2019 10:19:37 -0700 Subject: [PATCH] Fix tests to pass when -preview suffix set in version (#121) --- package.json | 2 +- test/azureServiceClientTests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ea75896..9b4cdb7 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "email": "azsdkteam@microsoft.com", "url": "https://github.com/Azure/ms-rest-azure-js" }, - "version": "1.3.7", + "version": "1.3.8", "description": "Isomorphic Azure client runtime for Typescript/node.js/browser javascript client libraries generated using AutoRest", "tags": [ "isomorphic", diff --git a/test/azureServiceClientTests.ts b/test/azureServiceClientTests.ts index a4049b5..cbe2762 100644 --- a/test/azureServiceClientTests.ts +++ b/test/azureServiceClientTests.ts @@ -2523,7 +2523,7 @@ describe("AzureServiceClient", () => { delete expected.userAgent; assert.deepEqual(actual, expected); - assert(actualUserAgent!.match(/ms-rest-azure-js\/[\d\.]+ ms-rest-js\/[\d\.]+ .+/)); + assert(actualUserAgent!.match(/ms-rest-azure-js\/[\d\.]+ ms-rest-js\/[\d\w\.-]+ .+/)); } it("with undefined", () => {