From 530f4cb62923d17fc2c4dbe952aceb233924daf8 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" <juanpicado19@gmail.com> Date: Sun, 16 Dec 2018 12:32:49 +0100 Subject: [PATCH] chore: update snapshopts --- .../PackageSidebar/__snapshots__/infos.spec.js.snap | 6 +++--- .../__snapshots__/maintainerInfo.spec.js.snap | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/webui/components/PackageSidebar/__snapshots__/infos.spec.js.snap b/test/unit/webui/components/PackageSidebar/__snapshots__/infos.spec.js.snap index b739df227..6530d3698 100644 --- a/test/unit/webui/components/PackageSidebar/__snapshots__/infos.spec.js.snap +++ b/test/unit/webui/components/PackageSidebar/__snapshots__/infos.spec.js.snap @@ -1,11 +1,11 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`<PackageSidebar /> : <Infos /> should load the Info component with homepage only 1`] = `"<div class=\\"module infosModule\\"><h2 class=\\"moduleTitle\\">Infos</h2><div><ul><li><span>Homepage</span><a href=\\"https://www.verdaccio.org\\" target=\\"_blank\\" rel=\\"noopener noreferrer\\">https://www.verdaccio.org</a></li></ul></div></div>"`; +exports[`<PackageSidebar /> : <Infos /> should load the Info component with homepage only 1`] = `"<div class=\\"module infosModule\\"><h2 class=\\"moduleTitle\\">Infos</h2><div><ul><li><span>Homepage</span><a href=\\"https://www.verdaccio.org\\" rel=\\"noopener noreferrer\\" target=\\"_blank\\">https://www.verdaccio.org</a></li></ul></div></div>"`; exports[`<PackageSidebar /> : <Infos /> should load the Info component with license only 1`] = `"<div class=\\"module infosModule\\"><h2 class=\\"moduleTitle\\">Infos</h2><div><ul><li><span>License</span><span>MIT</span></li></ul></div></div>"`; -exports[`<PackageSidebar /> : <Infos /> should load the Info component with props 1`] = `"<div class=\\"module infosModule\\"><h2 class=\\"moduleTitle\\">Infos</h2><div><ul><li><span>Homepage</span><a href=\\"https://www.verdaccio.org\\" target=\\"_blank\\" rel=\\"noopener noreferrer\\">https://www.verdaccio.org</a></li><li><span>Repository</span><a href=\\"https://github.com/verdaccio/verdaccio\\" target=\\"_blank\\" rel=\\"noopener noreferrer\\">https://github.com/verdaccio/verdaccio</a></li><li><span>License</span><span>MIT</span></li></ul></div></div>"`; +exports[`<PackageSidebar /> : <Infos /> should load the Info component with props 1`] = `"<div class=\\"module infosModule\\"><h2 class=\\"moduleTitle\\">Infos</h2><div><ul><li><span>Homepage</span><a href=\\"https://www.verdaccio.org\\" rel=\\"noopener noreferrer\\" target=\\"_blank\\">https://www.verdaccio.org</a></li><li><span>Repository</span><a href=\\"https://github.com/verdaccio/verdaccio\\" rel=\\"noopener noreferrer\\" target=\\"_blank\\">https://github.com/verdaccio/verdaccio</a></li><li><span>License</span><span>MIT</span></li></ul></div></div>"`; -exports[`<PackageSidebar /> : <Infos /> should load the Info component with repository only 1`] = `"<div class=\\"module infosModule\\"><h2 class=\\"moduleTitle\\">Infos</h2><div><ul><li><span>Repository</span><a href=\\"https://github.com/verdaccio/verdaccio\\" target=\\"_blank\\" rel=\\"noopener noreferrer\\">https://github.com/verdaccio/verdaccio</a></li></ul></div></div>"`; +exports[`<PackageSidebar /> : <Infos /> should load the Info component with repository only 1`] = `"<div class=\\"module infosModule\\"><h2 class=\\"moduleTitle\\">Infos</h2><div><ul><li><span>Repository</span><a href=\\"https://github.com/verdaccio/verdaccio\\" rel=\\"noopener noreferrer\\" target=\\"_blank\\">https://github.com/verdaccio/verdaccio</a></li></ul></div></div>"`; exports[`<PackageSidebar /> : <Infos /> should load the component without props 1`] = `"<div class=\\"module infosModule\\"><h2 class=\\"moduleTitle\\">Infos</h2><div><p class=\\"emptyPlaceholder\\">Not Available!</p></div></div>"`; diff --git a/test/unit/webui/components/PackageSidebar/__snapshots__/maintainerInfo.spec.js.snap b/test/unit/webui/components/PackageSidebar/__snapshots__/maintainerInfo.spec.js.snap index ff7f163e1..887561c88 100644 --- a/test/unit/webui/components/PackageSidebar/__snapshots__/maintainerInfo.spec.js.snap +++ b/test/unit/webui/components/PackageSidebar/__snapshots__/maintainerInfo.spec.js.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`<PackageSidebar /> : <Maintainers /> <MaintainerInfo /> should load the component and match with snapshot 1`] = `"<div class=\\"maintainer\\" title=\\"test\\"><img src=\\"http://xyz.com/profile.jpg\\" alt=\\"test-title test's avatar\\" title=\\"test-title test's avatar\\"/><span class=\\"maintainer-name\\">test</span></div>"`; +exports[`<PackageSidebar /> : <Maintainers /> <MaintainerInfo /> should load the component and match with snapshot 1`] = `"<div class=\\"maintainer\\" title=\\"test\\"><img alt=\\"test-title test's avatar\\" src=\\"http://xyz.com/profile.jpg\\" title=\\"test-title test's avatar\\"/><span class=\\"maintainer-name\\">test</span></div>"`;