1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-23 21:44:44 +02:00

Add some tests (#2652)

and some cleanups
This commit is contained in:
qwerty287
2023-10-28 13:37:54 +02:00
committed by GitHub
parent 4f8732bafc
commit e74115027b
26 changed files with 356 additions and 94 deletions

View File

@@ -56,6 +56,6 @@ func TestService(t *testing.T) {
s, _ := Service("foo", "bar", "baz", []string{"1", "2", "3"})
j, err := json.Marshal(s)
assert.Nil(t, err)
assert.NoError(t, err)
assert.JSONEq(t, expected, string(j))
}