mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-25 20:01:45 +00:00
19 lines
483 B
TypeScript
19 lines
483 B
TypeScript
import { getQuotedCqlIdentifier } from "./CqlUtilities";
|
|
|
|
describe("getQuotedCqlIdentifier", () => {
|
|
it("undefined id", () => {
|
|
const result = getQuotedCqlIdentifier(undefined);
|
|
expect(result).toBe(undefined);
|
|
});
|
|
|
|
it("id with no quotes", () => {
|
|
const result = getQuotedCqlIdentifier("foo");
|
|
expect(result).toBe('"foo"');
|
|
});
|
|
|
|
it("id with quotes", () => {
|
|
const result = getQuotedCqlIdentifier('"foo"');
|
|
expect(result).toBe('"""foo"""');
|
|
});
|
|
});
|