Skip to content

Commit

Permalink
♻️ Assert
Browse files Browse the repository at this point in the history
  • Loading branch information
benjlevesque committed Jan 6, 2025
1 parent 24cd3e5 commit 96cc36d
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Then as Alors } from '@cucumber/cucumber';
import { mediator } from 'mediateur';
import waitForExpect from 'wait-for-expect';
import { expect } from 'chai';
import { assert, expect } from 'chai';

import { Raccordement, GestionnaireRéseau } from '@potentiel-domain/reseau';
import { ConsulterDocumentProjetQuery } from '@potentiel-domain/document';
Expand Down Expand Up @@ -312,9 +312,7 @@ async function vérifierGestionnaireAttribué(
},
});

if (Option.isNone(résultat)) {
throw new Error('Raccordement inconnu');
}
assert(Option.isSome(résultat));

expect(résultat.identifiantGestionnaireRéseau?.codeEIC).to.eq(
identifiantGestionnaireRéseau?.codeEIC,
Expand Down

0 comments on commit 96cc36d

Please sign in to comment.