Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmylife committed Mar 25, 2024
1 parent 484af12 commit 9b3cc8a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pkg/datasource_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package main

import (
"context"
"testing"

"github.com/grafana/grafana-plugin-sdk-go/backend"
"github.com/stretchr/testify/require"
)

func TestNewDatasource(t *testing.T) {
ds, err := NewDatasource(context.Background(), backend.DataSourceInstanceSettings{Name: "test-datasource"})
require.NoError(t, err)
require.NotNil(t, ds)
}

0 comments on commit 9b3cc8a

Please sign in to comment.