blob: 72e49ba62b6cba03b8d5a5ea88f55f9d15f1a8e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/**
* External dependencies
*/
import React from 'react';
import { range } from 'lodash';
import { shallow } from 'enzyme';
/**
* Internal dependencies
*/
import Mosaic from '..';
import * as imageSets from '../../test/fixtures/image-sets';
test( 'renders as expected', () => {
Object.keys( imageSets ).forEach( k => {
const images = imageSets[ k ];
expect(
shallow( <Mosaic images={ images } renderedImages={ range( images.length ) } /> )
).toMatchSnapshot();
} );
} );
|