saleor-apps-redis_apl/apps/invoices/src/modules/invoice-file-name/resolve-temp-pdf-file-location.test.ts
2023-02-07 20:25:36 +01:00

8 lines
385 B
TypeScript

import { describe, expect, it } from "vitest";
import { resolveTempPdfFileLocation } from "./resolve-temp-pdf-file-location";
describe("resolveTempPdfFileLocation", () => {
it("generates path with encoded file name, in case of invoice name contains path segments", () => {
expect(resolveTempPdfFileLocation("12/12/2022-foobar.pdf")).toBe("12%2F12%2F2022-foobar.pdf");
});
});