Skip to content

Commit

Permalink
fix: add events service test
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien4218 committed Nov 13, 2023
1 parent 4f7ae8f commit e1bdd11
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions newrelic/events_service_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//go:build unit
// +build unit

package newrelic

import (
"testing"

"github.com/stretchr/testify/assert"
)

func TestShouldCreateEventsService(t *testing.T) {
t.Parallel()

client, _ := New(ConfigPersonalAPIKey(testAPIkey))
service := NewEventsService(client)
assert.Equal(t, service, &client.Events)
}

0 comments on commit e1bdd11

Please sign in to comment.