mirror of
https://github.com/adnanh/webhook.git
synced 2026-07-26 08:39:17 +08:00
Add tests for YAML file parsing.
This commit is contained in:
@@ -233,6 +233,7 @@ var hooksLoadFromFileTests = []struct {
|
||||
ok bool
|
||||
}{
|
||||
{"../hooks.json.example", true},
|
||||
{"../hooks.yaml.example", true},
|
||||
{"", true},
|
||||
// failures
|
||||
{"missing.json", false},
|
||||
|
||||
Reference in New Issue
Block a user