regexper-static/src/rendering/Pin/test.js
2019-01-31 21:15:11 -05:00

21 lines
392 B
JavaScript

import React from 'react';
import { shallow } from 'enzyme';
import Pin, { layout } from 'rendering/Pin';
describe('Pin', () => {
test('rendering', () => {
const component = shallow(
<Pin/>
);
expect(component).toMatchSnapshot();
});
test('layout', () => {
const processed = layout({
type: 'Pin'
});
expect(processed).toMatchSnapshot();
});
});