Skip to content

Commit

Permalink
fix: fix webhook tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coffeeispower committed Sep 22, 2024
1 parent a3c4309 commit fc8e2c4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/webhooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,10 @@ mod webhook_tests {
#[test]
fn test_webhook_valid_without_request_id() {
let body = WebhookBody {
id: "1234567890".to_owned(),
id: 1234567890,
live_mode: false,
r#type: WebhookType::Payment,
date_created: "2021-01-01
00:00:00Z"
.to_string(),
date_created: "2021-01-0100:00:00Z".to_string(),
user_id: 1234567890,
api_version: "v1".to_string(),
action: "payment.created".to_string(),
Expand All @@ -147,12 +145,10 @@ mod webhook_tests {
#[test]
fn test_webhook_valid_with_request_id() {
let body = WebhookBody {
id: "1234567890".to_owned(),
id: 1234567890,
live_mode: false,
r#type: WebhookType::Payment,
date_created: "2021-01-01
00:00:00Z"
.to_string(),
date_created: "2021-01-0100:00:00Z".to_string(),
user_id: 1234567890,
api_version: "v1".to_string(),
action: "payment.created".to_string(),
Expand Down

0 comments on commit fc8e2c4

Please sign in to comment.