-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9508928
commit 1eb3dd0
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
src/client/components/privacyEnhancedModel/privacyEnhancedModel.test.tsx
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { render, screen } from '@testing-library/react'; | ||
import React from 'react'; | ||
import PrivacyEnhancedModel from './privacyEnhancedModel'; | ||
|
||
describe('privacy enhanced model', () => { | ||
it('should provide link to model', () => { | ||
const linkToModel = 'https://link/to/model'; | ||
|
||
render(<PrivacyEnhancedModel modelRef={linkToModel} />); | ||
|
||
screen.getByText(linkToModel); | ||
screen.getByRole('link'); | ||
}); | ||
|
||
it('should not provide link to model if there is no modelRef', () => { | ||
render(<PrivacyEnhancedModel modelRef={undefined} />); | ||
|
||
expect(screen.queryByRole('link')).toBeNull(); | ||
}); | ||
}); |