summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/extensions/blocks/tiled-gallery/layout/mosaic/test/index.js')
-rw-r--r--plugins/jetpack/extensions/blocks/tiled-gallery/layout/mosaic/test/index.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/jetpack/extensions/blocks/tiled-gallery/layout/mosaic/test/index.js b/plugins/jetpack/extensions/blocks/tiled-gallery/layout/mosaic/test/index.js
new file mode 100644
index 00000000..72e49ba6
--- /dev/null
+++ b/plugins/jetpack/extensions/blocks/tiled-gallery/layout/mosaic/test/index.js
@@ -0,0 +1,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();
+ } );
+} );