mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-03 02:09:15 +02:00
15 lines
372 B
TypeScript
15 lines
372 B
TypeScript
import { expect, test } from "vitest";
|
|
import { onlyWhitespace } from "@/helpers/strings.ts";
|
|
|
|
test("contains No whitespace", () => {
|
|
expect(onlyWhitespace("awdawdawd")).toBe(false);
|
|
});
|
|
|
|
test("contains whitespace", () => {
|
|
expect(onlyWhitespace("aw daw dawd")).toBe(false);
|
|
});
|
|
|
|
test("contains only whitespace", () => {
|
|
expect(onlyWhitespace(" ")).toBe(true);
|
|
});
|