@@ -108,7 +108,7 @@ class IssueOpSpec extends FunSpec with api.Constants with BeforeAndAfterAll {
108
108
}
109
109
110
110
it(" shold return only two issues when using options." ) {
111
- val option = IssueListOption (IssueFilter .created, IssueStateFilter .open, Seq (" question" ), since= Some (nTime))
111
+ val option = IssueListOption (IssueFilter .created, IssueState .open, Seq (" question" ), since= Some (nTime))
112
112
val result = Await .result(api.listAllIssues(option), TIMEOUT )
113
113
assert(result.length > 0 )
114
114
assert(result.head.title == " test issue" )
@@ -122,7 +122,7 @@ class IssueOpSpec extends FunSpec with api.Constants with BeforeAndAfterAll {
122
122
}
123
123
124
124
it(" shold return only one issues when using options." ) {
125
- val option = IssueListOption (IssueFilter .created, IssueStateFilter .open, Seq (" question" ), since= Some (nTime))
125
+ val option = IssueListOption (IssueFilter .created, IssueState .open, Seq (" question" ), since= Some (nTime))
126
126
val result = Await .result(api.listUserIssues(option), TIMEOUT )
127
127
assert(result.length > 0 )
128
128
assert(result.head.title == " test issue" )
@@ -141,23 +141,23 @@ class IssueOpSpec extends FunSpec with api.Constants with BeforeAndAfterAll {
141
141
}
142
142
143
143
it(" should return only one issue from user's own repo when using options." ) {
144
- val option = new IssueListOption4Repository (Some (MilestoneSearchOption (1 )), IssueStateFilter .open, Some (user), Some (user), labels= Seq (" question" ), since= Some (nTime))
144
+ val option = new IssueListOption4Repository (Some (MilestoneSearchOption (1 )), IssueState .open, Some (user), Some (user), labels= Seq (" question" ), since= Some (nTime))
145
145
val result = Await .result(api.listRepositoryIssues(user, userRepo, option), TIMEOUT )
146
146
// showResponse(option.q)
147
147
assert(result.length == 1 )
148
148
assert(result.head.title == " test issue" )
149
149
}
150
150
151
151
it(" should return only one issue from organization's repo when using options." ) {
152
- val option = new IssueListOption4Repository (None , IssueStateFilter .open, None , Some (user), labels= Nil , since= Some (nTime))
152
+ val option = new IssueListOption4Repository (None , IssueState .open, None , Some (user), labels= Nil , since= Some (nTime))
153
153
val result = Await .result(api.listRepositoryIssues(organization, tRepo, option), TIMEOUT )
154
154
assert(result.length == 1 )
155
155
assert(result.head.title == " test issue" )
156
156
}
157
157
}
158
158
159
159
describe(" editIssue(owner, repo, number, input)" ) {
160
- val input = IssueInput (Some (" test issue edited" ), Some (" testing again" ), Some (user), None , Seq (" question" , " bug" ), Some (IssueStateFilter .closed))
160
+ val input = IssueInput (Some (" test issue edited" ), Some (" testing again" ), Some (user), None , Seq (" question" , " bug" ), Some (IssueState .closed))
161
161
162
162
it(" should edit the issue in user's own repo." ) {
163
163
val result = Await .result(api.editIssue(user, userRepo, nUser, input), TIMEOUT )
0 commit comments