Refactoring day1
This commit is contained in:
19
services/services.test.js
Normal file
19
services/services.test.js
Normal 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);
|
||||
});
|
||||
Reference in New Issue
Block a user