diff --git a/src/public/app/services/utils.spec.ts b/src/public/app/services/utils.spec.ts
new file mode 100644
index 000000000..2885fa270
--- /dev/null
+++ b/src/public/app/services/utils.spec.ts
@@ -0,0 +1,22 @@
+import { describe, expect, it } from "vitest";
+import { getSizeFromSvg } from "./utils.js";
+
+describe("getSizeFromSvg", () => {
+ it("parses width & height attribute", () => {
+ const svg = ``;
+ const result = getSizeFromSvg(svg);
+ expect(result).toMatchObject({
+ width: 714,
+ height: 574,
+ });
+ });
+
+ it("parses viewbox", () => {
+ const svg = `