mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-29 05:41:40 +00:00
fixed lint issue of StringUtils file (#480)
* fixed lint issue of StringUtils file * Fixed null lint issue
This commit is contained in:
committed by
GitHub
parent
9617b80b56
commit
d85b6285ac
@@ -1,4 +1,4 @@
|
||||
import { StringUtils } from "./StringUtils";
|
||||
import * as StringUtils from "./StringUtils";
|
||||
|
||||
describe("StringUtils", () => {
|
||||
describe("stripSpacesFromString()", () => {
|
||||
@@ -12,9 +12,9 @@ describe("StringUtils", () => {
|
||||
expect(transformedString).toBe("abc");
|
||||
});
|
||||
|
||||
it("should return null if input is null", () => {
|
||||
const transformedString: string = StringUtils.stripSpacesFromString(null);
|
||||
expect(transformedString).toBeNull();
|
||||
it("should return undefined if input is undefined", () => {
|
||||
const transformedString: string = StringUtils.stripSpacesFromString(undefined);
|
||||
expect(transformedString).toBeUndefined();
|
||||
});
|
||||
|
||||
it("should return undefined if input is undefiend", () => {
|
||||
|
||||
Reference in New Issue
Block a user