Refactoring day1

This commit is contained in:
2020-08-20 20:27:14 +02:00
parent 6aceefeb2f
commit b907489a75
481 changed files with 5321 additions and 5616 deletions

19
services/services.test.js Normal file
View File

@@ -0,0 +1,19 @@
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);
});