+ {instruction} +
+ ))} + > + ); +}; diff --git a/packages/react-core/src/components/InstrumentInstructions/__tests__/InstrumentInstructions.test.tsx b/packages/react-core/src/components/InstrumentInstructions/__tests__/InstrumentInstructions.test.tsx new file mode 100644 index 000000000..5512fd4e3 --- /dev/null +++ b/packages/react-core/src/components/InstrumentInstructions/__tests__/InstrumentInstructions.test.tsx @@ -0,0 +1,32 @@ +import { cleanup, render, screen } from '@testing-library/react'; +import { afterEach, describe, expect, it } from 'vitest'; + +import { InstrumentInstructions } from '../InstrumentInstructions'; + +describe('InstrumentInstructions', () => { + afterEach(cleanup); + + it('should render each instruction in its own paragraph', () => { + render({instructions!.join(', ')}
+