diff options
author | Stas Vilchik <stas-vilchik@users.noreply.github.com> | 2017-04-27 09:07:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-27 09:07:29 +0200 |
commit | 73416c40dcdd5d199df5a1e4741167095650fd8b (patch) | |
tree | c5b32204bcde1376ebd3c0fae76a4dea0fadee9f /server/sonar-web/src/main/js/apps/web-api | |
parent | 3e72937a66a0ca25d8cf2872f614b8edf179c2a8 (diff) | |
download | sonarqube-73416c40dcdd5d199df5a1e4741167095650fd8b.tar.gz sonarqube-73416c40dcdd5d199df5a1e4741167095650fd8b.zip |
upgrade jest (#1981)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/web-api')
3 files changed, 72 insertions, 36 deletions
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/ActionChangelog-test.js.snap b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/ActionChangelog-test.js.snap index f2cece27339..8c3eb7ace6d 100644 --- a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/ActionChangelog-test.js.snap +++ b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/ActionChangelog-test.js.snap @@ -1,18 +1,25 @@ -exports[`test should render 1`] = ` +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`should render 1`] = ` <ul - className="big-spacer-top"> + className="big-spacer-top" +> <li - className="spacer-top"> + className="spacer-top" + > <span - className="spacer-right badge"> + className="spacer-right badge" + > 5.0 </span> foo </li> <li - className="spacer-top"> + className="spacer-top" + > <span - className="spacer-right badge"> + className="spacer-right badge" + > 5.1 </span> bar diff --git a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Domain-test.js.snap b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Domain-test.js.snap index 49b0fcb5b79..22a9c18b1cb 100644 --- a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Domain-test.js.snap +++ b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Domain-test.js.snap @@ -1,30 +1,40 @@ -exports[`test should not render deprecated actions 1`] = ` +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`should not render deprecated actions 1`] = ` <div - className="web-api-domain"> + className="web-api-domain" +> <header - className="web-api-domain-header"> + className="web-api-domain-header" + > <h2 - className="web-api-domain-title"> + className="web-api-domain-title" + > api </h2> </header> <div - className="web-api-domain-actions" /> + className="web-api-domain-actions" + /> </div> `; -exports[`test should render deprecated actions 1`] = ` +exports[`should render deprecated actions 1`] = ` <div - className="web-api-domain"> + className="web-api-domain" +> <header - className="web-api-domain-header"> + className="web-api-domain-header" + > <h2 - className="web-api-domain-title"> + className="web-api-domain-title" + > api </h2> </header> <div - className="web-api-domain-actions"> + className="web-api-domain-actions" + > <Action action={ Object { @@ -43,7 +53,8 @@ exports[`test should render deprecated actions 1`] = ` "path": "api", } } - showDeprecated={true} /> + showDeprecated={true} + /> </div> </div> `; diff --git a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Params-test.js.snap b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Params-test.js.snap index 5bc2426ebef..294cc61c75a 100644 --- a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Params-test.js.snap +++ b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/Params-test.js.snap @@ -1,15 +1,19 @@ -exports[`test should not render deprecated parameters 1`] = ` +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`should not render deprecated parameters 1`] = ` <div - className="web-api-params"> + className="web-api-params" +> <table> <tbody /> </table> </div> `; -exports[`test should render deprecated key 1`] = ` +exports[`should render deprecated key 1`] = ` <div - className="web-api-params"> + className="web-api-params" +> <table> <tbody> <tr> @@ -19,23 +23,28 @@ exports[`test should render deprecated key 1`] = ` Object { "width": 180, } - }> + } + > <code> foo </code> <div - className="little-spacer-top"> + className="little-spacer-top" + > <code> foo-deprecated </code> </div> <div - className="little-spacer-top"> + className="little-spacer-top" + > <DeprecatedBadge - since="5.0" /> + since="5.0" + /> </div> <div - className="note little-spacer-top"> + className="note little-spacer-top" + > optional </div> </td> @@ -46,23 +55,26 @@ exports[`test should render deprecated key 1`] = ` Object { "__html": undefined, } - } /> + } + /> </td> <td style={ Object { "width": 250, } - } /> + } + /> </tr> </tbody> </table> </div> `; -exports[`test should render deprecated parameters 1`] = ` +exports[`should render deprecated parameters 1`] = ` <div - className="web-api-params"> + className="web-api-params" +> <table> <tbody> <tr> @@ -72,17 +84,21 @@ exports[`test should render deprecated parameters 1`] = ` Object { "width": 180, } - }> + } + > <code> foo </code> <div - className="little-spacer-top"> + className="little-spacer-top" + > <DeprecatedBadge - since="5.0" /> + since="5.0" + /> </div> <div - className="note little-spacer-top"> + className="note little-spacer-top" + > optional </div> </td> @@ -93,14 +109,16 @@ exports[`test should render deprecated parameters 1`] = ` Object { "__html": undefined, } - } /> + } + /> </td> <td style={ Object { "width": 250, } - } /> + } + /> </tr> </tbody> </table> |