make EqualStringSlice to generic EqualSliceValues (#2179)

just a fly-by refactoring
This commit is contained in:
6543
2023-08-09 09:00:12 +02:00
committed by GitHub
parent b7af77685e
commit ada3659eb7
7 changed files with 60 additions and 57 deletions

View File

@@ -64,7 +64,7 @@ func Test_parser(t *testing.T) {
g.Assert(r).IsNotNil()
g.Assert(b).IsNotNil()
g.Assert(b.Event).Equal(model.EventPush)
g.Assert(utils.EqualStringSlice(b.ChangedFiles, []string{"CHANGELOG.md", "app/controller/application.rb"})).IsTrue()
g.Assert(utils.EqualSliceValues(b.ChangedFiles, []string{"CHANGELOG.md", "app/controller/application.rb"})).IsTrue()
})
})
g.Describe("given a push hook from an branch creation", func() {