Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Phanindra-tw committed Jul 24, 2023
1 parent 2f04f6c commit 5804027
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions ui/test/unit/ot/controller/otCalendarController.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ describe("otCalendarController", function () {
return {data: {results: surgeons}};
});
surgicalAppointmentService.getBulkNotes.and.callFake(function () {
return {data: {results: notes}};
return {data: notes}
});
createController();

Expand All @@ -138,7 +138,7 @@ describe("otCalendarController", function () {
return {data: {results: surgeons}};
});
surgicalAppointmentService.getBulkNotes.and.callFake(function () {
return {data: {results: notes}};
return {data: notes}
});
createController();

Expand All @@ -159,7 +159,7 @@ describe("otCalendarController", function () {
return {data: {results: surgeons}};
});
surgicalAppointmentService.getBulkNotes.and.callFake(function () {
return {data: {results: notes}};
return {data: notes}
});
createController();

Expand All @@ -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();
Expand Down Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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();
Expand All @@ -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('');
Expand All @@ -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());
Expand All @@ -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);
Expand Down

0 comments on commit 5804027

Please sign in to comment.