mirror of
https://github.com/trushildhokiya/allininx-2.git
synced 2025-03-15 18:28:39 +00:00
17 lines
565 B
TypeScript
17 lines
565 B
TypeScript
|
import { isEmptyOrBlank } from "../src/utils/whitespace";
|
||
|
|
||
|
describe("WhiteSpace and empty string should return true", () => {
|
||
|
test("Empty string should return true", () => {
|
||
|
const emptyString = "";
|
||
|
expect(isEmptyOrBlank(emptyString)).toEqual(true);
|
||
|
})
|
||
|
test("WhiteSpace string should return true", () => {
|
||
|
const whiteSpaceString = " ";
|
||
|
expect(isEmptyOrBlank(whiteSpaceString)).toEqual(true);
|
||
|
})
|
||
|
test("NewLine should return true", () => {
|
||
|
const newLineString = "\n\n";
|
||
|
expect(isEmptyOrBlank(newLineString)).toEqual(true);
|
||
|
})
|
||
|
})
|