From 73416c40dcdd5d199df5a1e4741167095650fd8b Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 27 Apr 2017 09:07:29 +0200 Subject: upgrade jest (#1981) --- .../__tests__/__snapshots__/duck-test.js.snap | 2 ++ .../__tests__/__snapshots__/analyses-test.js.snap | 12 +++++++----- .../__tests__/__snapshots__/analysesByProject-test.js.snap | 14 ++++++++------ .../__tests__/__snapshots__/duck-test.js.snap | 2 ++ .../__tests__/__snapshots__/events-test.js.snap | 12 +++++++----- .../__tests__/__snapshots__/paging-test.js.snap | 8 +++++--- 6 files changed, 31 insertions(+), 19 deletions(-) (limited to 'server/sonar-web/src/main/js/store') diff --git a/server/sonar-web/src/main/js/store/organizations/__tests__/__snapshots__/duck-test.js.snap b/server/sonar-web/src/main/js/store/organizations/__tests__/__snapshots__/duck-test.js.snap index 1b9f5405edd..c5ad9b73625 100644 --- a/server/sonar-web/src/main/js/store/organizations/__tests__/__snapshots__/duck-test.js.snap +++ b/server/sonar-web/src/main/js/store/organizations/__tests__/__snapshots__/duck-test.js.snap @@ -1,3 +1,5 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + exports[`Reducer should have initial state 1`] = ` Object { "byKey": Object {}, diff --git a/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/analyses-test.js.snap b/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/analyses-test.js.snap index 4928990cf42..48c18d0c6e0 100644 --- a/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/analyses-test.js.snap +++ b/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/analyses-test.js.snap @@ -1,6 +1,8 @@ -exports[`test reducer 1`] = `Object {}`; +// Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`test reducer 2`] = ` +exports[`reducer 1`] = `Object {}`; + +exports[`reducer 2`] = ` Object { "AVgAgC1Vdo07z3PUnnkt": Object { "date": "2016-10-26T12:17:29+0200", @@ -24,7 +26,7 @@ Object { } `; -exports[`test reducer 3`] = ` +exports[`reducer 3`] = ` Object { "AVgAgC1Vdo07z3PUnnkt": Object { "date": "2016-10-26T12:17:29+0200", @@ -49,7 +51,7 @@ Object { } `; -exports[`test reducer 4`] = ` +exports[`reducer 4`] = ` Object { "AVgAgC1Vdo07z3PUnnkt": Object { "date": "2016-10-26T12:17:29+0200", @@ -73,7 +75,7 @@ Object { } `; -exports[`test reducer 5`] = ` +exports[`reducer 5`] = ` Object { "AVgAgC1Vdo07z3PUnnkt": Object { "date": "2016-10-26T12:17:29+0200", diff --git a/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/analysesByProject-test.js.snap b/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/analysesByProject-test.js.snap index fd714d5bb72..335d2124946 100644 --- a/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/analysesByProject-test.js.snap +++ b/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/analysesByProject-test.js.snap @@ -1,6 +1,8 @@ -exports[`test reducer 1`] = `Object {}`; +// Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`test reducer 2`] = ` +exports[`reducer 1`] = `Object {}`; + +exports[`reducer 2`] = ` Object { "project-foo": Array [ "AVgFqeOSKpGuA48ADATE", @@ -9,7 +11,7 @@ Object { } `; -exports[`test reducer 3`] = ` +exports[`reducer 3`] = ` Object { "project-foo": Array [ "AVgFqeOSKpGuA48ADATE", @@ -19,7 +21,7 @@ Object { } `; -exports[`test reducer 4`] = ` +exports[`reducer 4`] = ` Object { "project-bar": Array [ "AVgGkRvCrrTJiPpCD-rG", @@ -32,7 +34,7 @@ Object { } `; -exports[`test reducer 5`] = ` +exports[`reducer 5`] = ` Object { "project-bar": Array [ "AVgGkRvCrrTJiPpCD-rG", @@ -44,7 +46,7 @@ Object { } `; -exports[`test reducer 6`] = ` +exports[`reducer 6`] = ` Object { "project-bar": Array [], "project-foo": Array [ diff --git a/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/duck-test.js.snap b/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/duck-test.js.snap index c6005fe745e..8dcb0729436 100644 --- a/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/duck-test.js.snap +++ b/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/duck-test.js.snap @@ -1,3 +1,5 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + exports[`actions addEvent 1`] = ` Object { "analysis": "foo", diff --git a/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/events-test.js.snap b/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/events-test.js.snap index 8d015b56833..284a895a928 100644 --- a/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/events-test.js.snap +++ b/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/events-test.js.snap @@ -1,6 +1,8 @@ -exports[`test reducer 1`] = `Object {}`; +// Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`test reducer 2`] = ` +exports[`reducer 1`] = `Object {}`; + +exports[`reducer 2`] = ` Object { "AVjUDBiSiXOcXjpycvde": Object { "category": "VERSION", @@ -15,7 +17,7 @@ Object { } `; -exports[`test reducer 3`] = ` +exports[`reducer 3`] = ` Object { "AVjUDBiSiXOcXjpycvde": Object { "category": "VERSION", @@ -35,7 +37,7 @@ Object { } `; -exports[`test reducer 4`] = ` +exports[`reducer 4`] = ` Object { "AVjUDBiSiXOcXjpycvde": Object { "category": "VERSION", @@ -55,7 +57,7 @@ Object { } `; -exports[`test reducer 5`] = ` +exports[`reducer 5`] = ` Object { "AVjUDBiSiXOcXjpycvde": Object { "category": "VERSION", diff --git a/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/paging-test.js.snap b/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/paging-test.js.snap index d35a2ad55be..8698272003a 100644 --- a/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/paging-test.js.snap +++ b/server/sonar-web/src/main/js/store/projectActivity/__tests__/__snapshots__/paging-test.js.snap @@ -1,6 +1,8 @@ -exports[`test reducer 1`] = `Object {}`; +// Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`test reducer 2`] = ` +exports[`reducer 1`] = `Object {}`; + +exports[`reducer 2`] = ` Object { "project-foo": Object { "pageIndex": 1, @@ -10,7 +12,7 @@ Object { } `; -exports[`test reducer 3`] = ` +exports[`reducer 3`] = ` Object { "project-foo": Object { "pageIndex": 2, -- cgit v1.2.3