Skip to content

Commit

Permalink
ESLint warning fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seenanair committed Feb 7, 2024
1 parent 74138c0 commit 8dcec99
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
6 changes: 3 additions & 3 deletions cypress/e2e/pages/staining.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ describe('Staining Page', () => {
getButton('Submit').click();
}
function fillInForm(stainType: string) {
if (stainType == 'H&E') {
if (stainType === 'H&E') {
selectSGPNumber('SGP1008');
cy.findByTestId('timeMeasurements.0.minutes').type('1');
cy.findByTestId('timeMeasurements.0.seconds').type('1');
Expand All @@ -177,10 +177,10 @@ describe('Staining Page', () => {
cy.findByTestId('STAN-3111-bondRun').type('1');
selectOption('STAN-3111-workNumber', 'SGP1008');
selectOption('STAN-3111-panel', 'Positive');
if (stainType == 'RNAscope' || stainType == 'RNAscope & IHC') {
if (stainType === 'RNAscope' || stainType === 'RNAscope & IHC') {
cy.findByTestId('STAN-3111-plexRNAscope').type('1');
}
if (stainType == 'IHC' || stainType == 'RNAscope & IHC') {
if (stainType === 'IHC' || stainType === 'RNAscope & IHC') {
cy.findByTestId('STAN-3111-plexIHC').type('1');
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/machines/layout/layoutContext.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LabwareFieldsFragment, LabwareFlaggedFieldsFragment, Maybe } from '../../../types/sdk';
import { Address, NewFlaggedLabwareLayout, NewLabwareLayout } from '../../../types/stan';
import { Address, NewFlaggedLabwareLayout } from '../../../types/stan';

export interface LayoutPlan {
/**
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/components/analysis/analysis.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { act, cleanup, render, screen, waitFor } from '@testing-library/react';
import { act, cleanup, render, screen } from '@testing-library/react';
import '@testing-library/jest-dom';
import { createMemoryRouter, RouterProvider } from 'react-router-dom';
import React from 'react';
Expand Down
5 changes: 0 additions & 5 deletions tests/unit/components/history/history.machine.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ const mockHistorySearchResults: HistoryTableEntry[] = [
afterEach(() => {
jest.clearAllMocks();
});
const initialContext = Object.assign({}, createHistoryMachine().context, {
historyProps: { workNumber: 'SGP8' },
history: [],
serverError: null
});

function findHistorySuccess() {
return {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/components/history/historyInput.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { act, cleanup, fireEvent, render, screen } from '@testing-library/react';
import { cleanup, render, screen } from '@testing-library/react';
import '@testing-library/jest-dom';
import { Formik } from 'formik';
import HistoryInput from '../../../../src/components/history/HistoryInput';
Expand Down

0 comments on commit 8dcec99

Please sign in to comment.