mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2026-01-17 11:52:26 +01: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