mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-03 18:29:14 +02:00
Resolve "lint, test and build for frontend image"
This commit is contained in:
14
frontend/src/helpers/strings.test.ts
Normal file
14
frontend/src/helpers/strings.test.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
});
|
Reference in New Issue
Block a user