From 1ae349347d3518b662137401bba82bf121c6a7f7 Mon Sep 17 00:00:00 2001 From: Joshua Timmons Date: Tue, 21 Nov 2023 20:10:38 -0500 Subject: [PATCH] Fix test --- src/Linear/SeqBlock.test.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Linear/SeqBlock.test.tsx b/src/Linear/SeqBlock.test.tsx index 14aa1a928..39f7ecb38 100644 --- a/src/Linear/SeqBlock.test.tsx +++ b/src/Linear/SeqBlock.test.tsx @@ -3,6 +3,7 @@ import { cleanup, render, screen } from "@testing-library/react"; import * as React from "react"; +import { SeqType } from "../elements"; import { SeqBlock } from "./SeqBlock"; const defaultProps = { @@ -13,6 +14,7 @@ const defaultProps = { elementHeight: 16, firstBase: 0, forwardPrimerRows: [], + handleMouseEvent: () => {}, highlightedRegions: [], highlights: [], id: "", @@ -28,10 +30,13 @@ const defaultProps = { onUnmount: () => { // do nothing }, - reversePrimerRows: [], + primers: [], + primerFwdRows: [], + primerRevRows: [], searchRows: [], selection: {}, seqFontSize: 12, + seqType: "dna" as SeqType, showComplement: true, showIndex: true, size: { height: 600, width: 1200 }, @@ -52,7 +57,6 @@ describe("SeqBlock", () => { it("renders with a single block", async () => { const seq = "gcgaaaaatcaataaggaggcaacaagatgtgcgaaaaacatcttaatcatgcggtggagggtttctaatg"; render( - // @ts-ignore