Skip to content

Commit

Permalink
10275: revert mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
TomElliottFlexion committed Oct 23, 2024
1 parent 71e50c6 commit ed9e49c
Showing 1 changed file with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ import {
oneSessionPerLocationPerWeekConstraint,
reservedWeekOfAtLocationConstraint,
} from '@web-api/business/useCaseHelper/trialSessions/trialSessionCalendaring/constraints';
import mockCases from '@shared/test/mockReadyForTrialCases.json';
import mockSessions from '@shared/test/mockTrialSessions.json';

const MAX_SESSIONS_PER_WEEK = 6;
const MAX_SESSIONS_PER_LOCATION = 5;
Expand Down Expand Up @@ -85,18 +83,16 @@ export const generateSuggestedTrialSessionCalendarInteractor = async (
}

console.time('10275: Get ready for trial cases time');
// const cases = await applicationContext
// .getPersistenceGateway()
// .getSuggestedCalendarCases({ applicationContext });
const cases = mockCases;
const cases = await applicationContext
.getPersistenceGateway()
.getSuggestedCalendarCases({ applicationContext });

console.timeEnd('10275: Get ready for trial cases time');

console.time('10275: Get trial sessions time');
// const sessions = await applicationContext
// .getPersistenceGateway()
// .getTrialSessions({ applicationContext });
const sessions = mockSessions;
const sessions = await applicationContext
.getPersistenceGateway()
.getTrialSessions({ applicationContext });

console.timeEnd('10275: Get trial sessions time');
// Note (10275): storing trial session data differently would make for a more
Expand Down

0 comments on commit ed9e49c

Please sign in to comment.