This repository has been archived on 2025-12-24. You can view files and clone it, but cannot push or open issues or pull requests.
site-template/packages/imagetoolsNew/api/utils/getLinkElement.test.ts
2025-03-07 14:59:06 +01:00

15 lines
468 B
TypeScript

import { describe, expect, it } from "vitest";
import getLinkElement from "./getLinkElement";
describe("getLinkElement", () => {
it("returns an empty string if preload is not set", () => {
const result = getLinkElement({ linkAttributes: {} });
expect(result).toBe("");
});
it("returns an empty string if no images are provided", () => {
const result = getLinkElement({ linkAttributes: {}, preload: "webp" });
expect(result).toBe("");
});
});