Browse Source

actually use const

closed-social-glitch-2
Kai Schaper 7 years ago
parent
commit
cbfc12044d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      spec/javascript/components/avatar.test.jsx

+ 1
- 1
spec/javascript/components/avatar.test.jsx View File

@ -6,7 +6,7 @@ import Avatar from '../../../app/assets/javascripts/components/components/avatar
describe('<Avatar />', () => {
const src = '/path/to/image.jpg';
const size = 100;
const wrapper = render(<Avatar src={src} size={100} />);
const wrapper = render(<Avatar src={src} size={size} />);
it('renders an img element with the given src', () => {
expect(wrapper.find('img')).to.have.attr('src', `${src}`);

Loading…
Cancel
Save