12 lines
305 B
Go
12 lines
305 B
Go
package models
|
|
|
|
import "testing"
|
|
|
|
func TestScrapeHistory_TableName(t *testing.T) {
|
|
scrapeHistory := ScrapeHistory{}
|
|
expectedTableName := "ScrapeHistory"
|
|
if tableName := scrapeHistory.TableName(); tableName != expectedTableName {
|
|
t.Fatalf("expected %s, but got %s", expectedTableName, tableName)
|
|
}
|
|
}
|