diff --git a/blocks/library/audio/test/__snapshots__/index.js.snap b/blocks/library/audio/test/__snapshots__/index.js.snap new file mode 100644 index 00000000000000..96289bdbeb0ebf --- /dev/null +++ b/blocks/library/audio/test/__snapshots__/index.js.snap @@ -0,0 +1,51 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`core/audio block edit matches snapshot 1`] = ` +
+
+ + Audio +
+
+ Select an audio file from your library, or upload a new one: +
+
+
+ + +
+ *** Mock(Media upload button) *** +
+
+`; diff --git a/blocks/library/audio/test/index.js b/blocks/library/audio/test/index.js new file mode 100644 index 00000000000000..616372f874777a --- /dev/null +++ b/blocks/library/audio/test/index.js @@ -0,0 +1,15 @@ +/** + * Internal dependencies + */ +import '../'; +import { blockEditRender } from 'blocks/test/helpers'; + +jest.mock( 'blocks/media-upload-button', () => () => '*** Mock(Media upload button) ***' ); + +describe( 'core/audio', () => { + test( 'block edit matches snapshot', () => { + const wrapper = blockEditRender( 'core/audio' ); + + expect( wrapper ).toMatchSnapshot(); + } ); +} ); diff --git a/blocks/library/button/test/__snapshots__/index.js.snap b/blocks/library/button/test/__snapshots__/index.js.snap new file mode 100644 index 00000000000000..60a4909e58e170 --- /dev/null +++ b/blocks/library/button/test/__snapshots__/index.js.snap @@ -0,0 +1,22 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`core/button block edit matches snapshot 1`] = ` + +
+ + + Add text… + +
+
+`; diff --git a/blocks/library/button/test/index.js b/blocks/library/button/test/index.js new file mode 100644 index 00000000000000..8e4fdf4979f539 --- /dev/null +++ b/blocks/library/button/test/index.js @@ -0,0 +1,13 @@ +/** + * Internal dependencies + */ +import '../'; +import { blockEditRender } from 'blocks/test/helpers'; + +describe( 'core/button', () => { + test( 'block edit matches snapshot', () => { + const wrapper = blockEditRender( 'core/button' ); + + expect( wrapper ).toMatchSnapshot(); + } ); +} ); diff --git a/blocks/library/code/test/__snapshots__/index.js.snap b/blocks/library/code/test/__snapshots__/index.js.snap new file mode 100644 index 00000000000000..ff100192b8158c --- /dev/null +++ b/blocks/library/code/test/__snapshots__/index.js.snap @@ -0,0 +1,13 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`core/code block edit matches snapshot 1`] = ` +
+