From 3f2a7fc7e4a30b8ff4988c94291894a9499d3474 Mon Sep 17 00:00:00 2001 From: "pattishin@google.com" Date: Tue, 8 Aug 2023 13:15:52 -0700 Subject: [PATCH 1/2] refactor: adding in region tag to link back to cloud storage v2 unit test docs --- functions/v2/helloGCS/test/unit.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/v2/helloGCS/test/unit.test.js b/functions/v2/helloGCS/test/unit.test.js index e7e5bf5ce0..8329f3e483 100644 --- a/functions/v2/helloGCS/test/unit.test.js +++ b/functions/v2/helloGCS/test/unit.test.js @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +// [START functions_cloudevent_storage_unit_test] + const {getFunction} = require('@google-cloud/functions-framework/testing'); describe('functions_cloudevent_storage', () => { @@ -52,3 +54,5 @@ describe('functions_cloudevent_storage', () => { assert(console.log.calledWith('File: my-file.txt')); }); }); + +// [END functions_cloudevent_storage_unit_test] From b9cd8425e151746964609b44cab94e850ec6ad87 Mon Sep 17 00:00:00 2001 From: "pattishin@google.com" Date: Tue, 8 Aug 2023 16:37:04 -0700 Subject: [PATCH 2/2] chore: space clean up --- functions/v2/helloGCS/test/unit.test.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/functions/v2/helloGCS/test/unit.test.js b/functions/v2/helloGCS/test/unit.test.js index 8329f3e483..7a53524c5b 100644 --- a/functions/v2/helloGCS/test/unit.test.js +++ b/functions/v2/helloGCS/test/unit.test.js @@ -13,7 +13,6 @@ // limitations under the License. // [START functions_cloudevent_storage_unit_test] - const {getFunction} = require('@google-cloud/functions-framework/testing'); describe('functions_cloudevent_storage', () => { @@ -54,5 +53,4 @@ describe('functions_cloudevent_storage', () => { assert(console.log.calledWith('File: my-file.txt')); }); }); - // [END functions_cloudevent_storage_unit_test]