From 8cb5041f96e0267ee471e48fd13261f6315819e1 Mon Sep 17 00:00:00 2001 From: Theresa Gresch Date: Tue, 17 Dec 2019 18:26:50 +0100 Subject: [PATCH] Add test for entity/lens.go --- internal/entity/lens_test.go | 6 ++++++ 1 file changed, 6 insertions(+) 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) +}