Skip to content

Commit

Permalink
[TECH] Migrer l'envoi de résultats de participations "completed" à Pô…
Browse files Browse the repository at this point in the history
…le Emploi vers le contexte Prescription (Pix-15340)

 #10816
  • Loading branch information
pix-service-auto-merge authored Dec 16, 2024
2 parents 2e030c2 + 8a4819c commit b98b3a9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { usecases } from '../../../../../lib/domain/usecases/index.js';
import { JobController } from '../../../../shared/application/jobs/job-controller.js';
import { ParticipationCompletedJob } from '../../domain/models/ParticipationCompletedJob.js';
import { usecases } from '../../domain/usecases/index.js';
export class ParticipationCompletedJobController extends JobController {
constructor() {
super(ParticipationCompletedJob.name);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { PoleEmploiSending } from '../../../src/prescription/campaign-participation/domain/models/PoleEmploiSending.js';
import { PoleEmploiPayload } from '../../../src/prescription/campaign-participation/infrastructure/externals/pole-emploi/PoleEmploiPayload.js';
import { logger } from '../../../src/shared/infrastructure/utils/logger.js';
import * as httpErrorsHelper from '../../infrastructure/http/errors-helper.js';
import { httpAgent } from '../../infrastructure/http/http-agent.js';
import * as httpErrorsHelper from '../../../../../lib/infrastructure/http/errors-helper.js';
import { httpAgent } from '../../../../../lib/infrastructure/http/http-agent.js';
import { logger } from '../../../../shared/infrastructure/utils/logger.js';
import { PoleEmploiPayload } from '../../infrastructure/externals/pole-emploi/PoleEmploiPayload.js';
import { PoleEmploiSending } from '../models/PoleEmploiSending.js';

const sendCompletedParticipationResultsToPoleEmploi = async ({
campaignParticipationId,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { usecases } from '../../../../lib/domain/usecases/index.js';
import * as poleEmploiNotifier from '../../../../src/prescription/campaign-participation/infrastructure/externals/pole-emploi/pole-emploi-notifier.js';
import { usecases } from '../../../../../../src/prescription/campaign-participation/domain/usecases/index.js';
import * as poleEmploiNotifier from '../../../../../../src/prescription/campaign-participation/infrastructure/externals/pole-emploi/pole-emploi-notifier.js';
import {
databaseBuilder,
expect,
knex,
learningContentBuilder,
mockLearningContent,
sinon,
} from '../../../test-helper.js';
} from '../../../../../test-helper.js';

describe('Integration | Domain | UseCases | send-completed-participation-results-to-pole-emploi', function () {
let campaignParticipationId, userId, responseCode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { usecases } from '../../../../../../lib/domain/usecases/index.js';
import { ParticipationCompletedJobController } from '../../../../../../src/prescription/campaign-participation/application/jobs/participation-completed-job-controller.js';
import { usecases } from '../../../../../../src/prescription/campaign-participation/domain/usecases/index.js';
import { expect, sinon } from '../../../../../test-helper.js';

describe('Unit | Prescription | Application | Jobs | participationCompletedJobController', function () {
Expand Down

0 comments on commit b98b3a9

Please sign in to comment.