File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1177,7 +1177,7 @@ describe("Replicate client", () => {
1177
1177
// This is a test secret and should not be used in production
1178
1178
const secret = "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw" ;
1179
1179
1180
- const isValid = validateWebhook ( request , secret ) ;
1180
+ const isValid = await validateWebhook ( request , secret ) ;
1181
1181
expect ( isValid ) . toBe ( true ) ;
1182
1182
} ) ;
1183
1183
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const ApiError = require("./error");
26
26
/**
27
27
* Validate a webhook signature
28
28
*
29
- * @returns {boolean } - True if the signature is valid
29
+ * @returns {Promise< boolean> } - True if the signature is valid
30
30
* @throws {Error } - If the request is missing required headers, body, or secret
31
31
*/
32
32
async function validateWebhook ( requestData , secret ) {
You can’t perform that action at this time.
0 commit comments