From 55db87c6a73ba59eda63a5992b666003643c1df3 Mon Sep 17 00:00:00 2001 From: Riley Grant Date: Wed, 23 Oct 2024 13:29:03 -0500 Subject: [PATCH] fixup(browser): minor edit to snapshot test --- .../GenePage/TissueExpressionTrack.spec.tsx | 31 +++++++++---------- .../TissueExpressionTrack.spec.tsx.snap | 2 +- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/browser/src/GenePage/TissueExpressionTrack.spec.tsx b/browser/src/GenePage/TissueExpressionTrack.spec.tsx index cd32fde3d..a7b3bef13 100644 --- a/browser/src/GenePage/TissueExpressionTrack.spec.tsx +++ b/browser/src/GenePage/TissueExpressionTrack.spec.tsx @@ -10,22 +10,21 @@ import { RegionViewerContext } from '@gnomad/region-viewer' import geneFactory from '../__factories__/Gene' describe('TissueExpressionTrack', () => { - const childProps = { - centerPanelWidth: 500, - isPositionDefined: true, - leftPanelWidth: 100, - // same regions as pext factory regions - regions: [ - { - start: 0, - stop: 100, - }, - ], - rightPanelWidth: 100, - scalePosition: (i: number) => i, - } + test('snapshot has no unexpected changes', () => { + const regionViewerProps = { + centerPanelWidth: 500, + isPositionDefined: true, + leftPanelWidth: 100, + regions: [ + { + start: 0, + stop: 100, + }, + ], + rightPanelWidth: 100, + scalePosition: (i: number) => i, + } - test('has no unexpected changes', () => { const testTranscriptId = 'transcript-1337' const gene = geneFactory.build({ canonical_transcript_id: testTranscriptId }) @@ -48,7 +47,7 @@ describe('TissueExpressionTrack', () => { ] const tree = renderer.create( - +