Skip to content

Commit

Permalink
fixup test and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
b-cooper committed Nov 9, 2023
1 parent 9d0df27 commit 4f20920
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions protocol-designer/src/components/DeckSetup/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,12 @@ export const DeckSetupContents = (props: ContentsProps): JSX.Element => {
])
: []

console.log('AA',
deckDef.locations.addressableAreas
.filter(
addressableArea =>
console.log(

Check warning on line 176 in protocol-designer/src/components/DeckSetup/index.tsx

View check run for this annotation

Codecov / codecov/patch

protocol-designer/src/components/DeckSetup/index.tsx#L176

Added line #L176 was not covered by tests
'AA',
deckDef.locations.addressableAreas.filter(addressableArea =>
isAddressableAreaStandardSlot(addressableArea.id, deckDef)

Check warning on line 179 in protocol-designer/src/components/DeckSetup/index.tsx

View check run for this annotation

Codecov / codecov/patch

protocol-designer/src/components/DeckSetup/index.tsx#L179

Added line #L179 was not covered by tests
))
)
)
return (
<>
{/* all modules */}
Expand Down
7 changes: 5 additions & 2 deletions shared-data/js/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export function getFixtureDisplayName(loadName: FixtureLoadName): string {
}
}


const STANDARD_OT2_SLOTS = [
'1',
'2',
Expand Down Expand Up @@ -138,4 +137,8 @@ const STANDARD_FLEX_SLOTS = [
export const isAddressableAreaStandardSlot = (
addressableAreaId: string,
deckDef: DeckDefinition
): boolean => (deckDef.robot.model === FLEX_ROBOT_TYPE ? STANDARD_FLEX_SLOTS : STANDARD_OT2_SLOTS).includes(addressableAreaId)
): boolean =>
(deckDef.robot.model === FLEX_ROBOT_TYPE
? STANDARD_FLEX_SLOTS
: STANDARD_OT2_SLOTS
).includes(addressableAreaId)

0 comments on commit 4f20920

Please sign in to comment.