Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: shifting test http region tags to show imports #3405

Merged
merged 9 commits into from
Aug 15, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
// limitations under the License.

// FF testing layer for declarative signatures
// [START functions_http_unit_test]
pattishin marked this conversation as resolved.
Show resolved Hide resolved
const {getFunction} = require('@google-cloud/functions-framework/testing');

describe('functions_helloworld_http', () => {
// [START functions_http_unit_test]
const sinon = require('sinon');
const assert = require('assert');
require('../');
Expand All @@ -40,7 +40,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'};
Expand All @@ -61,3 +61,4 @@ describe('functions_helloworld_http', () => {
assert.strictEqual(mocks.res.send.calledOnceWith('Hello John!'), true);
});
});
// [END functions_http_unit_test]
Loading