mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-03-13 05:15:30 +00:00
* Add additional teaching bubbles in Quickstart * Run npm format * Fix lint error * Add unit tests * Add Mongo teaching bubbles for Try CosmosDB and Launch full screen * Add additional tests for UrlUtility * Run npm format * Add tests for Notebook Utils
15 lines
442 B
TypeScript
15 lines
442 B
TypeScript
import * as EnvironmentUtility from "./EnvironmentUtility";
|
|
|
|
describe("Environment Utility Test", () => {
|
|
it("Test sample URI with /", () => {
|
|
const uri = "test/";
|
|
expect(EnvironmentUtility.normalizeArmEndpoint(uri)).toEqual(uri);
|
|
});
|
|
|
|
it("Test sample URI without /", () => {
|
|
const uri = "test";
|
|
const expectedResult = "test/";
|
|
expect(EnvironmentUtility.normalizeArmEndpoint(uri)).toEqual(expectedResult);
|
|
});
|
|
});
|