Add test for entity/lens.go

This commit is contained in:
Theresa Gresch 2019-12-17 18:26:50 +01:00
parent a9f55ed73f
commit 8cb5041f96

View file

@ -20,3 +20,9 @@ func TestNewLens(t *testing.T) {
assert.Equal(t, "unknown", lens.LensSlug)
})
}
func TestLens_TableName(t *testing.T) {
lens := NewLens("F500-99", "Canon")
tableName := lens.TableName()
assert.Equal(t, "lenses", tableName)
}