This commit is contained in:
2020-08-20 11:44:32 +02:00
parent 4715fc1814
commit 6aceefeb2f
2891 changed files with 11239 additions and 347539 deletions

View File

@@ -1,7 +1,11 @@
import { removePrefix } from "./azureServices.js";
import { JsonWebTokenError } from "jsonwebtoken";
import azureBlob from "@azure/storage-blob";
jest.mock("@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");