From 1b53251a560d9dc9abd8bbe554092b108b4ac222 Mon Sep 17 00:00:00 2001 From: Phanindra-tw Date: Mon, 24 Jul 2023 10:56:18 +0530 Subject: [PATCH] Fix tests --- .../controller/otCalendarController.spec.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/ui/test/unit/ot/controller/otCalendarController.spec.js b/ui/test/unit/ot/controller/otCalendarController.spec.js index f9d4cbb8bf..55c0822bdd 100644 --- a/ui/test/unit/ot/controller/otCalendarController.spec.js +++ b/ui/test/unit/ot/controller/otCalendarController.spec.js @@ -122,7 +122,7 @@ describe("otCalendarController", function () { return {data: {results: surgeons}}; }); surgicalAppointmentService.getBulkNotes.and.callFake(function () { - return {data: {results: notes}}; + return {data: notes} }); createController(); @@ -138,7 +138,7 @@ describe("otCalendarController", function () { return {data: {results: surgeons}}; }); surgicalAppointmentService.getBulkNotes.and.callFake(function () { - return {data: {results: notes}}; + return {data: notes} }); createController(); @@ -159,7 +159,7 @@ describe("otCalendarController", function () { return {data: {results: surgeons}}; }); surgicalAppointmentService.getBulkNotes.and.callFake(function () { - return {data: {results: notes}}; + return {data: notes} }); createController(); @@ -177,7 +177,7 @@ describe("otCalendarController", function () { return {data: {results: surgeons}}; }); surgicalAppointmentService.getBulkNotes.and.callFake(function () { - return {data: {results: notes}}; + return {data: notes} }); scope.weekOrDay = 'day'; createController(); @@ -277,7 +277,7 @@ describe("otCalendarController", function () { return {data: {results: surgeons}}; }); surgicalAppointmentService.getBulkNotes.and.callFake(function () { - return {data: {results: notes}}; + return {data: notes} }); createController(); const weekStartDate = moment('2023-07-02').toDate(); @@ -296,7 +296,7 @@ describe("otCalendarController", function () { return {data: {results: surgeons}}; }); surgicalAppointmentService.getBulkNotes.and.callFake(function () { - return {data: {results: notes}}; + return {data: notes} }); createController(); const weekStartDate = moment('2023-07-02').toDate(); @@ -315,7 +315,7 @@ describe("otCalendarController", function () { return {data: {results: surgeons}}; }); surgicalAppointmentService.getBulkNotes.and.callFake(function () { - return {data: {results: notes}}; + return {data: notes} }); createController(); const weekStartDate = moment('2023-07-02').toDate(); @@ -338,7 +338,7 @@ describe("otCalendarController", function () { return {data: {results: surgeons}}; }); surgicalAppointmentService.getBulkNotes.and.callFake(function () { - return {data: {results: notes}}; + return {data: notes} }); createController(); const viewDate = moment('2023-07-05').toDate(); @@ -360,7 +360,7 @@ describe("otCalendarController", function () { return {data: {results: surgeons}}; }); surgicalAppointmentService.getBulkNotes.and.callFake(function () { - return {data: {results: notes}}; + return {data: notes} }); createController(); scope.setNotes(''); @@ -377,7 +377,7 @@ describe("otCalendarController", function () { return {data: {results: surgeons}}; }); surgicalAppointmentService.getBulkNotes.and.callFake(function () { - return {data: {results: notes}}; + return {data: notes} }); createController(); scope.setNotesStartDate(moment('2023-07-05').toDate()); @@ -395,7 +395,7 @@ describe("otCalendarController", function () { return {data: {results: surgeons}}; }); surgicalAppointmentService.getBulkNotes.and.callFake(function () { - return {data: {results: notes}}; + return {data: notes} }); createController(); const style = scope.styleForBlock(6);