Add test for entity/lens.go
This commit is contained in:
parent
a9f55ed73f
commit
8cb5041f96
1 changed files with 6 additions and 0 deletions
|
@ -20,3 +20,9 @@ func TestNewLens(t *testing.T) {
|
||||||
assert.Equal(t, "unknown", lens.LensSlug)
|
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)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue