From e4760f3cf12644d868e9adb117fdce23f031cad0 Mon Sep 17 00:00:00 2001 From: alicegoarnisson Date: Fri, 13 Dec 2024 15:22:46 +0100 Subject: [PATCH] feat(orga): moved usecases files and changed imports --- ...send-shared-participation-results-to-pole-emploi.js | 10 +++++----- ...shared-participation-results-to-pole-emploi_test.js | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) rename api/{lib => src/prescription/campaign-participation}/domain/usecases/send-shared-participation-results-to-pole-emploi.js (80%) rename api/tests/prescription/campaign-participation/integration/{ => domain/usecases}/send-shared-participation-results-to-pole-emploi_test.js (90%) diff --git a/api/lib/domain/usecases/send-shared-participation-results-to-pole-emploi.js b/api/src/prescription/campaign-participation/domain/usecases/send-shared-participation-results-to-pole-emploi.js similarity index 80% rename from api/lib/domain/usecases/send-shared-participation-results-to-pole-emploi.js rename to api/src/prescription/campaign-participation/domain/usecases/send-shared-participation-results-to-pole-emploi.js index 294fb74a3f4..0e2f4bc2acb 100644 --- a/api/lib/domain/usecases/send-shared-participation-results-to-pole-emploi.js +++ b/api/src/prescription/campaign-participation/domain/usecases/send-shared-participation-results-to-pole-emploi.js @@ -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 sendSharedParticipationResultsToPoleEmploi = async ({ campaignParticipationId, diff --git a/api/tests/prescription/campaign-participation/integration/send-shared-participation-results-to-pole-emploi_test.js b/api/tests/prescription/campaign-participation/integration/domain/usecases/send-shared-participation-results-to-pole-emploi_test.js similarity index 90% rename from api/tests/prescription/campaign-participation/integration/send-shared-participation-results-to-pole-emploi_test.js rename to api/tests/prescription/campaign-participation/integration/domain/usecases/send-shared-participation-results-to-pole-emploi_test.js index 2ea5b3f270c..912e6bf74d5 100644 --- a/api/tests/prescription/campaign-participation/integration/send-shared-participation-results-to-pole-emploi_test.js +++ b/api/tests/prescription/campaign-participation/integration/domain/usecases/send-shared-participation-results-to-pole-emploi_test.js @@ -1,5 +1,5 @@ -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, @@ -7,7 +7,7 @@ import { learningContentBuilder, mockLearningContent, sinon, -} from '../../../test-helper.js'; +} from '../../../../../test-helper.js'; describe('Integration | Domain | UseCases | send-shared-participation-results-to-pole-emploi', function () { let campaignParticipationId, userId, responseCode;