Files
menui_backend/services/azureServices.test.js
2020-08-20 11:44:32 +02:00

13 lines
350 B
JavaScript

import { removePrefix } from "./azureServices.js";
import azureBlob from "@azure/storage-blob";
jest.mock("@azure/storage-blob", () => {
return jest.fn().mockImplementation(() => {
return { StorageSharedKeyCredential: jest.fn() };
});
});
test("should remove TEMP_ prefix", () => {
expect(removePrefix("TEMP_abcdef")).toBe("abcdef");
});