diff --git a/internal/entity/lens_test.go b/internal/entity/lens_test.go index 2e1eb503f..3fa5b4078 100644 --- a/internal/entity/lens_test.go +++ b/internal/entity/lens_test.go @@ -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) +}