Skip to content

Commit

Permalink
Make ESlint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
phildarnowsky-broad committed Oct 16, 2023
1 parent d3b5698 commit f4f0f3e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion browser/src/DatasetSelector.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from 'react'
import renderer from 'react-test-renderer'
import DatasetSelector from './DatasetSelector'

import { forAllDatasets, forDatasetsMatching } from '../../tests/__helpers__/datasets'
import { forAllDatasets } from '../../tests/__helpers__/datasets'
import { withDummyRouter } from '../../tests/__helpers__/router'

forAllDatasets('DataSelector with "%s" dataset selected', (datasetId) => {
Expand Down
2 changes: 1 addition & 1 deletion browser/src/Searchbox.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('Searchbox', () => {
history.push(`/?dataset=${datasetId}`)
const tree = renderer.create(withDummyRouter(<Searchbox history={history} />))
const datasetSelect = tree.root.findByType('select')
const defaultDataset = datasetSelect.props['value']
const defaultDataset = datasetSelect.props.value
expect(defaultDataset).toEqual(expectedDefaultDataset)
})
})
Expand Down
10 changes: 5 additions & 5 deletions graphql-api/src/queries/structural-variant-queries.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ describe('fetchStructuralVariantById', () => {
const response = responseWithHits([hit])
const mockClient = makeMockClient(response)
const processedResponse = await fetchStructuralVariantById(mockClient, datasetId, variantId)
expect(processedResponse.age_distribution['het']).toEqual('dummy het value')
expect(processedResponse.age_distribution['hom']).toBeNull()
expect(processedResponse.age_distribution.het).toEqual('dummy het value')
expect(processedResponse.age_distribution.hom).toBeNull()
})

test('age_distribution translates empty het to null if hom set', async () => {
Expand All @@ -137,8 +137,8 @@ describe('fetchStructuralVariantById', () => {
const response = responseWithHits([hit])
const mockClient = makeMockClient(response)
const processedResponse = await fetchStructuralVariantById(mockClient, datasetId, variantId)
expect(processedResponse.age_distribution['het']).toBeNull()
expect(processedResponse.age_distribution['hom']).toEqual('dummy hom value')
expect(processedResponse.age_distribution.het).toBeNull()
expect(processedResponse.age_distribution.hom).toEqual('dummy hom value')
})

test('age_distribution is null if neither het nor hom set', async () => {
Expand Down Expand Up @@ -282,7 +282,7 @@ describe('fetchStructuralVariantsByGene', () => {
},
}),
consequences: [
{ consequence: 'csq-a', genes: [gene.symbol + 'NOTME'] },
{ consequence: 'csq-a', genes: [`${gene.symbol}NOTME`] },
{ consequence: 'csq-b', genes: [gene.symbol] },
{ consequence: 'csq-c', genes: [gene.symbol] },
],
Expand Down

0 comments on commit f4f0f3e

Please sign in to comment.