Skip to content

Commit

Permalink
removed file download from test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurvir committed Apr 8, 2024
1 parent a8dcdba commit 72af449
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/controllers/bot.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ describe('Test cases for Google maps', () => {
const directions = `https://www.google.com/maps/dir/${source_gps.lat},${source_gps.lng}/${destination_gps.lat},${destination_gps.lng}/`;
const route_image = `https://maps.googleapis.com/maps/api/staticmap?size=300x300&path=enc:${routes[selected_route].overview_polyline.points}&key=${process.env.GOOGLE_MAPS_API_KEY}`;

const server_route_image = await actionsService.download_file(route_image);
await actionsService.send_message(process.env.TEST_RECEPIENT_NUMBER, `Here are the directions: ${directions}`, server_route_image);
// const server_route_image = await actionsService.download_file(route_image);
await actionsService.send_message(process.env.TEST_RECEPIENT_NUMBER, `Here are the directions: ${directions}`);
logger.info(`directions: ${directions}`);
logger.info(`route_image: ${route_image}`);
expect(routes).to.be.an('array').that.is.not.empty;
Expand Down

0 comments on commit 72af449

Please sign in to comment.