Skip to content

Commit

Permalink
test: use const Target
Browse files Browse the repository at this point in the history
  • Loading branch information
kperreau committed Apr 18, 2024
1 parent 5c244b7 commit 49ca4bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/project/affected_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 49ca4bb

Please sign in to comment.