Skip to content

Commit

Permalink
chore: add test reporter test
Browse files Browse the repository at this point in the history
  • Loading branch information
freak12techno committed Jul 23, 2024
1 parent 696084f commit ea30083
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pkg/reporters/test_reporter_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package reporters

import (
"github.com/stretchr/testify/assert"

Check failure on line 4 in pkg/reporters/test_reporter_test.go

View workflow job for this annotation

GitHub Actions / lint

File is not `goimports`-ed (goimports)
"testing"
)

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

reporter := &TestReporter{ReporterName: "test"}
reporter.Init()
assert.Equal(t, "test", reporter.Name())
assert.Equal(t, "telegram", reporter.Type())
}

0 comments on commit ea30083

Please sign in to comment.