Skip to content

Commit

Permalink
remove duplicate unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
blidd-google committed Sep 19, 2024
1 parent ac71dc0 commit cce1fc3
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions spec/v2/providers/identity.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -419,31 +419,6 @@ describe("identity", () => {
},
]);
});

it("should handle eventType, options, and handler for before send email events", () => {
const fn = identity.beforeOperation("beforeSendEmail", opts, () => Promise.resolve());

expect(fn.__endpoint).to.deep.equal({
...MINIMAL_V2_ENDPOINT,
platform: "gcfv2",
labels: {},
minInstances: 1,
region: [REGION],
blockingTrigger: {
...BEFORE_EMAIL_TRIGGER,
options: {
...BEFORE_EMAIL_TRIGGER.options,
accessToken: true,
},
},
});
expect(fn.__requiredAPIs).to.deep.equal([
{
api: IDENTITY_TOOLKIT_API,
reason: "Needed for auth blocking functions",
},
]);
});
});

describe("getOpts", () => {
Expand Down

0 comments on commit cce1fc3

Please sign in to comment.