From 5389718363939581c248bfb84e9bce6a0b5ba6f5 Mon Sep 17 00:00:00 2001 From: Mayur Virendra Date: Sat, 13 Apr 2024 19:47:17 +0530 Subject: [PATCH] modified roadblock trigger --- tests/unit/controllers/controlCenter.test.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/unit/controllers/controlCenter.test.js b/tests/unit/controllers/controlCenter.test.js index 8c4b605..1567f91 100644 --- a/tests/unit/controllers/controlCenter.test.js +++ b/tests/unit/controllers/controlCenter.test.js @@ -88,29 +88,11 @@ describe('API tests for /update-catalog endpoint for an end to end Notify Messag describe('API tests for triggering a roadblock', ()=>{ it('Should trigger a roadblock on a selected route', async ()=>{ - const ask1 = "Can you get routes from Denver to Yellowstone national park?"; - await request(app).post('/webhook').send({ - "From": process.env.TEST_RECEPIENT_NUMBER, - "Body": ask1 - }) - - const ask2 = "Lets select the first route."; - await request(app).post('/webhook').send({ - "From": process.env.TEST_RECEPIENT_NUMBER, - "Body": ask2 - }) - const response = await request(app).post('/trigger-exception').send({ "point":[39.7408351, -104.9874105], "message": "There is a roadblock on your selected route due to an accident!" }) - const ask3 = "I'm near Glendo"; - await request(app).post('/webhook').send({ - "From": process.env.TEST_RECEPIENT_NUMBER, - "Body": ask3 - }) - expect(response.status).equal(200) }) }) \ No newline at end of file