qrcode.spec.jsx 287 B

12345678910
  1. import React from 'react';
  2. import {shallow} from 'enzyme';
  3. import Qrcode from 'app/components/qrcode';
  4. describe('Qrcode', function() {
  5. it('renders', function() {
  6. let wrapper = shallow(<Qrcode code={[[0, 1, 1, 0, 0, 0, 0, 0]]} />);
  7. expect(wrapper).toMatchSnapshot();
  8. });
  9. });