-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add COORDINATE_SYSTEM_12X8, CoordinateSystem12X8
BREAKING CHANGE: rename COORDINATE_SYSTEM_96_WELL,CoordinateSystem96Well
- Loading branch information
Showing
6 changed files
with
45 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/Plate/coordinateSystem96Well.ts → src/Plate/coordinateSystem12x8.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { CoordinateSystem } from './types'; | ||
|
||
export const COORDINATE_SYSTEM_96_WELL = { | ||
export const COORDINATE_SYSTEM_12X8 = { | ||
rows: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'], | ||
columns: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], | ||
} as const satisfies CoordinateSystem; | ||
|
||
export type CoordinateSystem96Well = typeof COORDINATE_SYSTEM_96_WELL; | ||
export type CoordinateSystem12X8 = typeof COORDINATE_SYSTEM_12X8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import { render } from '@testing-library/react'; | ||
import React from 'react'; | ||
|
||
import { COORDINATE_SYSTEM_96_WELL } from './coordinateSystem96Well'; | ||
import { COORDINATE_SYSTEM_12X8 } from './coordinateSystem12x8'; | ||
|
||
import { Plate } from './index'; | ||
|
||
describe('Plate', () => { | ||
it('renders without data', () => { | ||
render(<Plate data={null} coordinateSystem={COORDINATE_SYSTEM_96_WELL} />); | ||
render(<Plate data={null} coordinateSystem={COORDINATE_SYSTEM_12X8} />); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters