26 lines
794 B
TypeScript
26 lines
794 B
TypeScript
/*
|
|
* File: DICOMViewer.test.tsx
|
|
* Description: Test for DICOMViewer component
|
|
* Design & Developed by Tech4Biz Solutions
|
|
* Copyright (c) Spurrin Innovations. All rights reserved.
|
|
*/
|
|
|
|
import React from 'react';
|
|
import { render } from '@testing-library/react-native';
|
|
import DICOMViewer from '../components/DICOMViewer';
|
|
|
|
describe('DICOMViewer', () => {
|
|
it('renders image and findings', () => {
|
|
const { getByText } = render(
|
|
<DICOMViewer image="https://example.com/image.png" findings="Hemorrhage" confidence={93} />
|
|
);
|
|
expect(getByText(/AI: Hemorrhage/)).toBeTruthy();
|
|
expect(getByText(/93%/)).toBeTruthy();
|
|
});
|
|
});
|
|
|
|
/*
|
|
* End of File: DICOMViewer.test.tsx
|
|
* Design & Developed by Tech4Biz Solutions
|
|
* Copyright (c) Spurrin Innovations. All rights reserved.
|
|
*/
|