Skip to content

Commit

Permalink
implement tests for autoacmg client
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon committed Sep 20, 2024
1 parent d906879 commit 79cf130
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/api/autoacmg/client.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ describe('AutoACMGClient', () => {
const result = await client.classifySequenceVariant({
genomeBuild: 'grch37',
chrom: '17',
pos: 41245466,
pos: 41215920,
del: 'G',
ins: 'A',
userRepr: 'GRCh37-17-41245466-G-A'
ins: 'T',
userRepr: 'chr17:41215920:G:T'
})

expect(result).toEqual(AUTOACMG_SEQVAR_RESULT)
expect(result).toEqual(AUTOACMG_SEQVAR_RESULT['prediction'])
expect(fetchMocker).toHaveBeenCalledTimes(1)
expect(fetchMocker).toHaveBeenCalledWith(

Check failure on line 35 in frontend/src/api/autoacmg/client.spec.ts

View workflow job for this annotation

GitHub Actions / Frontend-Test

src/api/autoacmg/client.spec.ts > AutoACMGClient > should classify a sequence variant

AssertionError: expected "spy" to be called with arguments: [ …(2) ] Received: 1st spy call: Array [ - "http://localhost:8080/api/v1/proxy/autoacmg/api/v1/predict/seqvar?variant_name=chr17:41245466:G:A&genome_release=grch37", - ObjectContaining { + "/internal/proxy/autoacmg/api/v1/predict/seqvar?variant_name=chr17:41215920:G:T&genome_release=grch37", + Object { "headers": Object { "Content-Type": "application/json", }, "method": "GET", }, ] Number of calls: 1 ❯ src/api/autoacmg/client.spec.ts:35:25
'http://localhost:8080/api/v1/proxy/autoacmg/api/v1/predict/seqvar?variant_name=chr17:41245466:G:A&genome_release=grch37',
Expand Down

0 comments on commit 79cf130

Please sign in to comment.