Skip to content

Commit 208dc23

Browse files
committed
Cleanup test impl.
1 parent 18c2487 commit 208dc23

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const functions = require("../../../../src/index");
22

3-
exports.v1callable = functions.https.onCall((_data, _ctx) => {
3+
exports.v1callable = functions.https.onCall(() => {
44
return "PASS";
55
})

spec/fixtures/sources/commonjs-grouped/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const functions = require("../../../../src/index");
22

3-
exports.v1http = functions.https.onRequest((_req, resp) => {
3+
exports.v1http = functions.https.onRequest((req, resp) => {
44
resp.status(200).send("PASS");
55
})
66

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const functions = require("../../../../src/index");
22

3-
exports.v1http = functions.https.onRequest((_req, resp) => {
3+
exports.v1http = functions.https.onRequest((req, resp) => {
44
resp.status(200).send("PASS");
55
})
66

7-
exports.v1callable = functions.https.onCall((_data, _ctx) => {
7+
exports.v1callable = functions.https.onCall(() => {
88
return "PASS";
99
})
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const functions = require("../../../../src/index");
22

3-
exports.scheduled = functions.pubsub.schedule('every 5 minutes').onRun((_context) => {
3+
exports.scheduled = functions.pubsub.schedule('every 5 minutes').onRun(() => {
44
return "PASS";
55
});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
const functions = require("../../../../src/index");
22

3-
exports.v1http = functions.https.onRequest((_req, resp) => {
3+
exports.v1http = functions.https.onRequest((req, resp) => {
44
resp.status(200).send("PASS");
55
})
66

7-
exports.v1callable = functions.https.onCall((_data, _ctx) => {
7+
exports.v1callable = functions.https.onCall(() => {
88
return "PASS";
99
})
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import * as functions from "../../../../lib/index.js";
1+
import * as functions from '../../../../lib/index.js';
22

3-
export const v1http = functions.https.onRequest((_req, resp) => {
4-
resp.status(200).send("PASS");
5-
})
3+
export const v1http = functions.https.onRequest((req, resp) => {
4+
resp.status(200).send('PASS');
5+
});
66

7-
export const v1callable = functions.https.onCall((_data, _ctx) => {
8-
return "PASS";
9-
})
7+
export const v1callable = functions.https.onCall(() => {
8+
return 'PASS';
9+
});
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as functions from "../../../../lib/index.js";
22

3-
export const v1http = functions.https.onRequest((_req, resp) => {
3+
export const v1http = functions.https.onRequest((req, resp) => {
44
resp.status(200).send("PASS");
55
})
66

7-
export const v1callable = functions.https.onCall((_data, _ctx) => {
7+
export const v1callable = functions.https.onCall(() => {
88
return "PASS";
99
})

spec/fixtures/sources/esm/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as functions from "../../../../lib/index.js";
22

3-
export const v1http = functions.https.onRequest((_req, resp) => {
3+
export const v1http = functions.https.onRequest((req, resp) => {
44
resp.status(200).send("PASS");
55
})
66

7-
export const v1callable = functions.https.onCall((_data, _ctx) => {
7+
export const v1callable = functions.https.onCall(() => {
88
return "PASS";
99
})

0 commit comments

Comments
 (0)