Don't check isNode in userAgentFilterTests.node.ts

This commit is contained in:
Rikki Gibson 2018-05-10 15:56:45 -07:00
Родитель e0770d8020
Коммит 975e5f1ec3
1 изменённых файлов: 0 добавлений и 13 удалений

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

@ -7,7 +7,6 @@ import { MsRestUserAgentPolicy } from "../../lib/policies/msRestUserAgentPolicy"
import { Constants } from "../../lib/util/constants";
import { RequestPolicy, RequestPolicyOptions } from "../../lib/policies/requestPolicy";
import { HttpOperationResponse } from "../../lib/httpOperationResponse";
import { isNode } from "../../lib/util/utils";
const should = require("should");
const userAgentHeader = Constants.HeaderConstants.USER_AGENT;
@ -21,10 +20,6 @@ const emptyRequestPolicy: RequestPolicy = {
describe("ms-rest user agent filter (nodejs only)", () => {
it("should construct user agent header when supplied empty array", function (done) {
if (!isNode) {
this.skip();
}
const userAgentArray: Array<string> = [];
const userAgentFilter = new MsRestUserAgentPolicy(emptyRequestPolicy, new RequestPolicyOptions(), userAgentArray);
const resource = new WebResource();
@ -37,10 +32,6 @@ describe("ms-rest user agent filter (nodejs only)", () => {
});
it("should not modify user agent header if already present", function (done) {
if (!isNode) {
this.skip();
}
const genericRuntime = "ms-rest";
const azureRuntime = "ms-rest-azure";
const azureSDK = "Azure-SDK-For-Node";
@ -61,10 +52,6 @@ describe("ms-rest user agent filter (nodejs only)", () => {
});
it("should insert azure-sdk-for-node at right position", function (done) {
if (!isNode) {
this.skip();
}
const genericRuntime = "ms-rest";
const azureRuntime = "ms-rest-azure";
const azureSDK = "Azure-SDK-For-Node";