mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-25 11:51:07 +00:00
16 lines
432 B
TypeScript
16 lines
432 B
TypeScript
import { StringUtility } from "./StringUtility";
|
|
|
|
describe("String utility", () => {
|
|
it("Convert to integer from string", () => {
|
|
expect(StringUtility.toNumber("123")).toBe(123);
|
|
});
|
|
|
|
it("Convert to boolean from string (true)", () => {
|
|
expect(StringUtility.toBoolean("true")).toBe(true);
|
|
});
|
|
|
|
it("Convert to boolean from string (false)", () => {
|
|
expect(StringUtility.toBoolean("false")).toBe(false);
|
|
});
|
|
});
|