sforkowany z mirror/soapbox
Fix test
rodzic
a8b738a719
commit
1b88f2f36e
|
@ -16,14 +16,14 @@ describe('<ValidationCheckmark />', () => {
|
|||
render(<ValidationCheckmark text={text} isValid />);
|
||||
|
||||
expect(screen.getByTestId('svg-icon-loader')).toHaveClass('text-success-500');
|
||||
expect(screen.getByTestId('svg-icon-loader')).not.toHaveClass('text-gray-500');
|
||||
expect(screen.getByTestId('svg-icon-loader')).not.toHaveClass('text-gray-400');
|
||||
});
|
||||
|
||||
it('uses a gray check when valid', () => {
|
||||
const text = 'some validation';
|
||||
render(<ValidationCheckmark text={text} isValid={false} />);
|
||||
|
||||
expect(screen.getByTestId('svg-icon-loader')).toHaveClass('text-gray-500');
|
||||
expect(screen.getByTestId('svg-icon-loader')).toHaveClass('text-gray-400');
|
||||
expect(screen.getByTestId('svg-icon-loader')).not.toHaveClass('text-success-500');
|
||||
});
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue