Resolve "lint, test and build for frontend image"

This commit is contained in:
ekresse
2024-01-12 13:58:52 +00:00
parent 718d190a04
commit d4d0c5199c
16 changed files with 1970 additions and 150 deletions

View 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);
});