Skip to content

Commit

Permalink
test: add test for user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
formulahendry committed Aug 9, 2024
1 parent b7a0092 commit 320b84c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/test/unit/common/clientOptions.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import * as assert from "assert";
import { clientOptions } from "../../../common/clientOptions";

describe("clientOptions", () => {
it("user agent", () => {
assert.ok(typeof clientOptions.userAgent === 'function');
assert.strictEqual(clientOptions.userAgent("fakeDefaultUserAgent"), "vscode-azure-api-center fakeDefaultUserAgent");
});
});

0 comments on commit 320b84c

Please sign in to comment.