This commit is contained in:
2020-10-08 14:26:54 +02:00
parent 6b1bd191ef
commit 023e180337
2 changed files with 6 additions and 13 deletions

View File

@@ -36,6 +36,12 @@ router.get("/", (req, res) => {
}
});
// TEST
router.get("/test/", (req, res) => {
res.send(req.query.string);
});
// SEARCH RESTAURANTS BY LOCATION
router.get("/location", async (req, res) => {

View File

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