Skip to content

Commit

Permalink
Fixed linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mymmrac committed Nov 20, 2021
1 parent abba457 commit 21f2b1c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions telegoutil/types_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package telegoutil

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

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

type testNamedReade struct{}
Expand All @@ -22,13 +23,13 @@ func TestFile(t *testing.T) {
}

func TestFileByID(t *testing.T) {
fileID := "test"
fileID := "file"
f := FileByID(fileID)
assert.Equal(t, fileID, f.FileID)
}

func TestFileByURL(t *testing.T) {
url := "test"
url := "url"
f := FileByURL(url)
assert.Equal(t, url, f.URL)
}
Expand All @@ -40,7 +41,7 @@ func TestID(t *testing.T) {
}

func TestUsername(t *testing.T) {
var username = "test"
var username = "username"
chatID := Username(username)
assert.Equal(t, username, chatID.Username)
}

0 comments on commit 21f2b1c

Please sign in to comment.