Skip to content
This repository has been archived by the owner on Jan 7, 2023. It is now read-only.

Commit

Permalink
✅ Increase common.go code coverage (#19)
Browse files Browse the repository at this point in the history
This should bring the file up to 100% coverage

Signed-off-by: Isabella Muerte <63051+slurps-mad-rips@users.noreply.github.com>
  • Loading branch information
bruxisma committed Sep 20, 2021
1 parent 1af1b0d commit ae59e22
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"regexp"
"testing"

"github.com/stretchr/testify/assert"
"occult.work/doze/test"
)

Expand All @@ -25,6 +26,12 @@ type CommonTestSuite struct {
test.Suite
}

func TestError(t *testing.T) {
assert := assert.New(t)
error := Error{Message: "text", Code: 420}
assert.Equal(error.Error(), `420: text`)
}

func TestCommon(t *testing.T) {
test.Run(t, new(CommonTestSuite))
}
Expand Down

0 comments on commit ae59e22

Please sign in to comment.