testing
This commit is contained in:
@@ -36,6 +36,12 @@ router.get("/", (req, res) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// TEST
|
||||||
|
|
||||||
|
router.get("/test/", (req, res) => {
|
||||||
|
res.send(req.query.string);
|
||||||
|
});
|
||||||
|
|
||||||
// SEARCH RESTAURANTS BY LOCATION
|
// SEARCH RESTAURANTS BY LOCATION
|
||||||
|
|
||||||
router.get("/location", async (req, res) => {
|
router.get("/location", async (req, res) => {
|
||||||
|
|||||||
@@ -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");
|
|
||||||
});
|
|
||||||
Reference in New Issue
Block a user