Skip to content

Commit

Permalink
feat(api): use the dependency-injected usecases in integration tests
Browse files Browse the repository at this point in the history
to be able to use in usecases the prescriberRepository injected with the
legalDocumentApiRepository
  • Loading branch information
lego-technix committed Jan 4, 2025
1 parent 374bfb0 commit a2f74df
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import * as sharedMembershipRepository from '../../../../../src/shared/infrastructure/repositories/membership-repository.js';
import { getPrescriber } from '../../../../../src/team/domain/usecases/get-prescriber.js';
import { usecases } from '../../../../../src/team/domain/usecases/index.js';
import { prescriberRepository } from '../../../../../src/team/infrastructure/repositories/prescriber-repository.js';
import { userOrgaSettingsRepository } from '../../../../../src/team/infrastructure/repositories/user-orga-settings-repository.js';
import { databaseBuilder, expect, knex } from '../../../../test-helper.js';

const getPrescriber = usecases.getPrescriber;

describe('Integration | Team | Domain | UseCases | get-prescriber', function () {
context('When prescriber does not have a userOrgaSettings', function () {
it("should create it with the first membership's organization", async function () {
Expand Down

0 comments on commit a2f74df

Please sign in to comment.