Skip to content

Commit 165f350

Browse files
chore: shifting test http region tags to show imports (#3405)
* refactor: shifting region tags to show imports tps could miss * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * refactor: wrapping getFunction import under functions_http_unit_test region tag --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent cbf3e6c commit 165f350

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

functions/helloworld/helloworldHttp/test/sample.unit.http.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
// limitations under the License.
1414

1515
// FF testing layer for declarative signatures
16+
17+
// [START functions_http_unit_test]
1618
const {getFunction} = require('@google-cloud/functions-framework/testing');
19+
// [END functions_http_unit_test]
1720

1821
describe('functions_helloworld_http', () => {
1922
// [START functions_http_unit_test]
@@ -41,6 +44,7 @@ describe('functions_helloworld_http', () => {
4144
assert.strictEqual(mocks.res.send.calledOnceWith('Hello World!'), true);
4245
});
4346
// [END functions_http_unit_test]
47+
4448
it('helloHttp: should print a name with query', () => {
4549
const mocks = getMocks();
4650
mocks.req.query = {name: 'John'};

0 commit comments

Comments
 (0)