Files
menui_backend/services/services.test.js
2020-08-20 20:27:14 +02:00

20 lines
397 B
JavaScript

import { validateRestaurant, toShortDate } from "./services";
jest.mock("@azure/storage-blob", () => {
return {
StorageSharedKeyCredential: jest.fn(),
newPipeline: jest.fn(),
BlobServiceClient: jest.fn(),
};
});
jest.mock("bcrypt", () => {
return {
foo: jest.fn(),
};
});
test("should return false for no date on input", () => {
expect(toShortDate()).toBe(false);
});