From e1bdd11c1ada176bc1e655a83f83d0e8ca006723 Mon Sep 17 00:00:00 2001 From: Julien Date: Mon, 13 Nov 2023 11:09:15 -0800 Subject: [PATCH] fix: add events service test --- newrelic/events_service_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 newrelic/events_service_test.go diff --git a/newrelic/events_service_test.go b/newrelic/events_service_test.go new file mode 100644 index 000000000..ea6895cf6 --- /dev/null +++ b/newrelic/events_service_test.go @@ -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) +}