Update image_test.go
add no-cache test
@@ -227,6 +227,13 @@ func TestGetBuildArgs(t *testing.T) {
},
want: []string{"--network", "bridge"},
},
+ {
+ description: "no-cache",
+ artifact: &latest.DockerArtifact{
+ NoCache: "noCache",
+ },
+ want: []string{"--no-cache"},
+ },
{
description: "all",
artifact: &latest.DockerArtifact{
