From d268d8c8d8536614b2feff0409bf4f2ff878be25 Mon Sep 17 00:00:00 2001 From: Mayur Virendra Date: Mon, 8 Apr 2024 08:10:57 +0530 Subject: [PATCH] test cases fixed --- services/MapService.js | 2 +- tests/unit/controllers/bot.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/MapService.js b/services/MapService.js index 9997e84..ee5b554 100644 --- a/services/MapService.js +++ b/services/MapService.js @@ -1,5 +1,5 @@ import {Client} from "@googlemaps/google-maps-services-js"; -import logger from "../utils/logger"; +import logger from '../utils/logger.js' class MapsService { diff --git a/tests/unit/controllers/bot.test.js b/tests/unit/controllers/bot.test.js index e6d999d..faba35f 100644 --- a/tests/unit/controllers/bot.test.js +++ b/tests/unit/controllers/bot.test.js @@ -9,8 +9,8 @@ const mapService = new MapsService() const ai = new AI(); const actionsService = new ActionService() -describe('Should test the Bot controller', () => { - it.only('It should take a trip plannign input and generate static route image and directions link.', async () => { +describe.only('Should test the Bot controller', () => { + it('It should take a trip plannign input and generate static route image and directions link.', async () => { const ask = "Can you plean a trip from Denver to Yellowstone national park?"; // identify source and destination