mirror of
https://github.com/adnanh/webhook.git
synced 2025-05-23 22:02:28 +00:00
Add tests for YAML file parsing.
This commit is contained in:
parent
2f1ea098c0
commit
53ec2e7acc
3 changed files with 127 additions and 47 deletions
|
@ -233,6 +233,7 @@ var hooksLoadFromFileTests = []struct {
|
|||
ok bool
|
||||
}{
|
||||
{"../hooks.json.example", true},
|
||||
{"../hooks.yaml.example", true},
|
||||
{"", true},
|
||||
// failures
|
||||
{"missing.json", false},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue