From 9c3e5c0046bf417ec8bbd7eef3545431223f7d99 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Fri, 23 Aug 2019 14:15:17 +0100 Subject: [PATCH] Refactor to DRY up test fixture data into helper file --- .../template-selector-item-test.js.snap | 30 +++++----- .../test/helpers/templates-blocks-helpers.js | 50 ++++++++++++++++ .../test/template-selector-control-test.js | 57 ++----------------- .../test/template-selector-item-test.js | 51 +---------------- 4 files changed, 74 insertions(+), 114 deletions(-) create mode 100644 apps/full-site-editing/full-site-editing-plugin/starter-page-templates/page-template-modal/components/test/helpers/templates-blocks-helpers.js diff --git a/apps/full-site-editing/full-site-editing-plugin/starter-page-templates/page-template-modal/components/test/__snapshots__/template-selector-item-test.js.snap b/apps/full-site-editing/full-site-editing-plugin/starter-page-templates/page-template-modal/components/test/__snapshots__/template-selector-item-test.js.snap index a0d3b49e9bf95..189ecdf96e167 100644 --- a/apps/full-site-editing/full-site-editing-plugin/starter-page-templates/page-template-modal/components/test/__snapshots__/template-selector-item-test.js.snap +++ b/apps/full-site-editing/full-site-editing-plugin/starter-page-templates/page-template-modal/components/test/__snapshots__/template-selector-item-test.js.snap @@ -3,7 +3,7 @@ exports[`TemplateSelectorItem Basic rendering renders with required props 1`] = `