summaryrefslogtreecommitdiffstats
path: root/src/styles/pages/cv.module.scss
blob: 615c50d09a768af80dacc4453f1b8c64c0dac890 (plain)
1
2
3
.image {
  max-width: min(100%, 25ch);
}
*/ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
import { render, screen } from '@test-utils';
import ResponsiveImage from './responsive-image';

describe('ResponsiveImage', () => {
  it('renders a responsive image', () => {
    render(
      <ResponsiveImage
        src="http://placeimg.com/640/480"
        alt="An alternative text"
        width={640}
        height={480}
      />
    );
    expect(
      screen.getByRole('img', { name: 'An alternative text' })
    ).toBeInTheDocument();
  });
});