Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jjti committed Nov 22, 2023
1 parent 5212673 commit 1ae3493
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Linear/SeqBlock.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -13,6 +14,7 @@ const defaultProps = {
elementHeight: 16,
firstBase: 0,
forwardPrimerRows: [],
handleMouseEvent: () => {},
highlightedRegions: [],
highlights: [],
id: "",
Expand All @@ -28,10 +30,13 @@ const defaultProps = {
onUnmount: () => {
// do nothing
},
reversePrimerRows: [],
primers: [],
primerFwdRows: [],

Check failure on line 34 in src/Linear/SeqBlock.test.tsx

View workflow job for this annotation

GitHub Actions / test (18.x)

Expected object keys to be in ascending order. 'primerFwdRows' should be before 'primers'

Check failure on line 34 in src/Linear/SeqBlock.test.tsx

View workflow job for this annotation

GitHub Actions / test (18.x)

Expected object keys to be in ascending order. 'primerFwdRows' should be before 'primers'
primerRevRows: [],
searchRows: [],
selection: {},
seqFontSize: 12,
seqType: "dna" as SeqType,
showComplement: true,
showIndex: true,
size: { height: 600, width: 1200 },
Expand All @@ -52,7 +57,6 @@ describe("SeqBlock", () => {
it("renders with a single block", async () => {
const seq = "gcgaaaaatcaataaggaggcaacaagatgtgcgaaaaacatcttaatcatgcggtggagggtttctaatg";
render(
// @ts-ignore
<SeqBlock
{...defaultProps}
annotationRows={[
Expand Down

0 comments on commit 1ae3493

Please sign in to comment.