From 49ca4bb50aab07c75428c66a60090438fba7d2ea Mon Sep 17 00:00:00 2001 From: kevin perreau Date: Thu, 18 Apr 2024 13:40:30 +0200 Subject: [PATCH] test: use const Target --- pkg/project/affected_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/project/affected_test.go b/pkg/project/affected_test.go index 0a8beec..938a4db 100644 --- a/pkg/project/affected_test.go +++ b/pkg/project/affected_test.go @@ -129,12 +129,12 @@ func TestIsAffected_DiffHash_ReturnTrue(t *testing.T) { } func TestStringToTarget_Build(t *testing.T) { - result := StringToTarget("build") + result := StringToTarget(TargetBuild.String()) assert.Equal(t, TargetBuild, result) } func TestStringToTarget_BuildImage(t *testing.T) { - result := StringToTarget("build-image") + result := StringToTarget(TargetBuildImage.String()) assert.Equal(t, TargetBuildImage, result) }