mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-07-27 07:06:52 +01:00
16 lines
433 B
TypeScript
16 lines
433 B
TypeScript
import * as 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);
|
|
});
|
|
});
|