Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vmaubert committed Dec 24, 2024
1 parent c61d4be commit dbf34f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/services/imapService/girpa.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ describe('getResidue', () => {
['', 'toto', null],
['', 'bixafen', {value: 'RF-1056-001-PPP', kind: 'SimpleResidue'}],
['', 'bixafen according reg.', {value: 'RF-1056-001-PPP', kind: 'SimpleResidue'}],
['120983-64-4', 'prothioconazole: prothioconazole-desthio', {value: 'RF-1056-001-PPP', kind: 'SimpleResidue'}],
['120983-64-4', 'prothioconazole: prothioconazole-desthio', {value: 'RF-0868-001-PPP', kind: 'SimpleResidue'}],
['-', 'metobromuron according reg.', {value: 'RF-00014532-PAR', kind: 'SimpleResidue'}],
['-', 'metobromuron', {value: 'RF-00014532-PAR', kind: 'SimpleResidue'}],
['15299-99-7', 'napropamide according reg.', {value: 'RF-0868-001-PPP', kind: 'SimpleResidue'}],
['15299-99-7', 'napropamide according reg.', {value: 'RF-00012802-PAR', kind: 'SimpleResidue'}],
//FIXME
//Résidu non trouvé: 1967-25-5 4-bromophenylurea
// Résidu non trouvé: 27112-32-9 desmethyl-metobromuron
Expand Down
2 changes: 1 addition & 1 deletion server/services/imapService/girpa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const getResidue = (

//Pour ceux qui n'ont pas de CAS
const labelToSimpleResidue: Record<string, SimpleResidue> = {
'metobromuron': 'RF-0868-001-PPP'
'metobromuron': 'RF-00014532-PAR'
}

if (normalizedEnglishName in labelToSimpleResidue) {
Expand Down

0 comments on commit dbf34f4

Please sign in to comment.