зеркало из https://github.com/Azure/ms-rest-js.git
Don't check isNode in userAgentFilterTests.node.ts
This commit is contained in:
Родитель
e0770d8020
Коммит
975e5f1ec3
|
@ -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";
|
||||
|
|
Загрузка…
Ссылка в новой задаче