diff --git a/functions/helloworld/helloworldHttp/test/sample.unit.http.test.js b/functions/helloworld/helloworldHttp/test/sample.unit.http.test.js index 6997f66a89..f1ee48c365 100644 --- a/functions/helloworld/helloworldHttp/test/sample.unit.http.test.js +++ b/functions/helloworld/helloworldHttp/test/sample.unit.http.test.js @@ -13,7 +13,10 @@ // limitations under the License. // FF testing layer for declarative signatures + +// [START functions_http_unit_test] const {getFunction} = require('@google-cloud/functions-framework/testing'); +// [END functions_http_unit_test] describe('functions_helloworld_http', () => { // [START functions_http_unit_test] @@ -41,6 +44,7 @@ describe('functions_helloworld_http', () => { assert.strictEqual(mocks.res.send.calledOnceWith('Hello World!'), true); }); // [END functions_http_unit_test] + it('helloHttp: should print a name with query', () => { const mocks = getMocks(); mocks.req.query = {name: 'John'};