Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivo van der Wijk committed Jul 12, 2022
1 parent ffc5cb9 commit 1261a4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions voicemessage/voice_message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"
"time"

"github.com/messagebird/go-rest-api/v9"
messagebird "github.com/messagebird/go-rest-api/v9"
"github.com/messagebird/go-rest-api/v9/internal/mbtest"
"github.com/stretchr/testify/assert"
)
Expand Down Expand Up @@ -130,7 +130,7 @@ func TestRequestDataForVoiceMessageZeroScheduledDatetime(t *testing.T) {
// ScheduledDatetime will default to zero-time
}

request, err := requestDataForVoiceMessage([]string{"31612345678"}, "MyBody", voiceParams)
request, err := paramsToRequest([]string{"31612345678"}, "MyBody", voiceParams)
assert.NoError(t, err)
assert.Equal(t, "", request.ScheduledDatetime, "Uninitialized ScheduledDatetime should default to empty string")
}

0 comments on commit 1261a4b

Please sign in to comment.