Skip to content

Commit

Permalink
Update calculate_statistics_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ceciliaromao committed Oct 31, 2023
1 parent 293d0d6 commit d834300
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/statistics/calculate_statistics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func TestCalculateStatistics_emptyDatabase(t *testing.T) {
gotJsonCounter, errJson := json.Marshal(paymentsCounter)
require.NoError(t, errJson)
wantJsonCounter := `{
"canceled":0,
"draft": 0,
"ready": 0,
"pending": 0,
Expand Down Expand Up @@ -180,6 +181,7 @@ func TestCalculateStatistics(t *testing.T) {
require.NoError(t, errJson)

wantJsonCounter := `{
"canceled":0,
"draft": 2,
"ready": 0,
"pending": 0,
Expand All @@ -198,6 +200,7 @@ func TestCalculateStatistics(t *testing.T) {
{
"asset_code": "USDC",
"payment_amounts": {
"canceled": "",
"draft": "20.0000000",
"ready": "",
"pending": "",
Expand Down Expand Up @@ -249,6 +252,7 @@ func TestCalculateStatistics(t *testing.T) {
require.NoError(t, err)

wantJsonCounter := `{
"canceled": 0,
"draft": 2,
"ready": 0,
"pending": 0,
Expand All @@ -267,6 +271,7 @@ func TestCalculateStatistics(t *testing.T) {
{
"asset_code": "EURT",
"payment_amounts": {
"canceled": "",
"draft": "",
"ready": "",
"pending": "",
Expand All @@ -280,6 +285,7 @@ func TestCalculateStatistics(t *testing.T) {
{
"asset_code": "USDC",
"payment_amounts": {
"canceled":"",
"draft": "20.0000000",
"ready": "",
"pending": "",
Expand All @@ -306,6 +312,7 @@ func TestCalculateStatistics(t *testing.T) {
require.NoError(t, err)

wantJsonCounter := `{
"canceled":0,
"draft": 0,
"ready": 0,
"pending": 0,
Expand All @@ -324,6 +331,7 @@ func TestCalculateStatistics(t *testing.T) {
{
"asset_code": "EURT",
"payment_amounts": {
"canceled":"",
"draft": "",
"ready": "",
"pending": "",
Expand Down

0 comments on commit d834300

Please sign in to comment.