Skip to content

Commit

Permalink
fix: access weight key
Browse files Browse the repository at this point in the history
  • Loading branch information
Justintime50 committed Aug 14, 2024
1 parent df5a263 commit 321fae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EasyPost.Tests/ServicesTests/WebhookServiceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void TestValidateWebHook()
Event @event = Client.Webhook.ValidateWebhook(eventData, headers, webhookSecret);

Assert.Equal("tracker.updated", @event.Description);
Assert.Equal(614.4, @event.Result.Weight);
Assert.Equal(614.4, @event.Result["weight"]); // Ensure we convert floats properly
}

[Fact]
Expand Down

0 comments on commit 321fae5

Please sign in to comment.