@@ -36,10 +36,10 @@ class WebhookOpSpec extends FunSpec with Constants with BeforeAndAfter {
36
36
assert(res.active == true )
37
37
assert(res.config.url == targetURL)
38
38
assert(res.config.content_type == " json" )
39
- assert(res.config.secret == " " )
40
- assert(res.config.insecure_ssl == " 0 " )
39
+ assert(res.config.secret == None )
40
+ assert(res.config.insecure_ssl == false )
41
41
}
42
- }
42
+ }
43
43
44
44
describe(" getWebhook(owner, repo, id)" ) {
45
45
it(" should succeed with valid organization, repo and id." ) {
@@ -48,7 +48,7 @@ class WebhookOpSpec extends FunSpec with Constants with BeforeAndAfter {
48
48
}
49
49
}
50
50
}
51
-
51
+
52
52
describe(" updateWebhook(owner, repo, id, input)" ) {
53
53
it(" should succeed updating by rewriting events." ) {
54
54
val input = new WebhookUpdateInput (events= Some (Seq (" create" , " pull_request" )))
@@ -76,26 +76,26 @@ class WebhookOpSpec extends FunSpec with Constants with BeforeAndAfter {
76
76
val res = Await .result(api.updateWebhook(organization, repo, nID, input), TIMEOUT )
77
77
assert(res.config.url == targetURL)
78
78
}
79
- }
79
+ }
80
80
81
81
describe(" testWebhook(owner, repo, id)" ) {
82
82
it(" should succeed with valid inputs." ) {
83
83
val result = Await .result(api.testWebhook(organization, repo, nID), TIMEOUT )
84
84
assert(result == true )
85
85
}
86
- }
86
+ }
87
87
88
88
describe(" pingWebhook(owner, repo, id)" ) {
89
89
it(" should succeed with valid inputs." ) {
90
90
val result = Await .result(api.pingWebhook(organization, repo, nID), TIMEOUT )
91
91
assert(result == true )
92
92
}
93
- }
93
+ }
94
94
95
95
describe(" removeWebhook(owner, repo, id)" ) {
96
96
it(" should succeed with valid inputs." ) {
97
97
val result = Await .result(api.removeWebhook(organization, repo, nID), TIMEOUT )
98
98
assert(result == true )
99
99
}
100
- }
101
- }
100
+ }
101
+ }
0 commit comments