Skip to content

Commit 2d31a5e

Browse files
committed
fix: test mock
1 parent 6d439cf commit 2d31a5e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Test/public/RepoIssueTimeTracking.test.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function Test_GetRepoIssueTimeTracking_Pipe
143143
{
144144
Reset-InvokeCommandMock
145145

146-
$owner = "rulasgorgkk" ; $repo = "repo1" ; $attributes = "title,comments,url" ; $attributes2 = "number,title,url"
146+
$owner = "rulasgorgkk" ; $repo = "repo1" ; $attributes = "title,comments,url" ; $attributes2 = "number,title,state,url"
147147

148148
MockCall -Command "gh issue list -R $owner/$repo --json $attributes2" -filename getIssueList.json
149149

@@ -186,7 +186,7 @@ function Test_GetRepoIssueTimeTrackingRecords_Pipe
186186
{
187187
Reset-InvokeCommandMock
188188

189-
$owner = "rulasgorgkk" ; $repo = "repo1" ; $attributes = "title,comments,url" ; $attributes2 = "number,title,url"
189+
$owner = "rulasgorgkk" ; $repo = "repo1" ; $attributes = "title,comments,url" ; $attributes2 = "number,title,state,url"
190190

191191
MockCall -Command "gh issue list -R $owner/$repo --json $attributes2" -filename getIssueList.json
192192

Test/public/addRepoIssueComment.test.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function Test_GetRepoIssues_Success{
5353

5454
Reset-InvokeCommandMock
5555

56-
$owner = 'solidifycustomers' ; $repo = 'bit21' ; $attributes="number,title,url"
56+
$owner = 'solidifycustomers' ; $repo = 'bit21' ; $attributes="number,title,state,url"
5757

5858
MockCall -Command "gh issue list -R $owner/$repo --json $attributes" -filename getIssueList.json
5959

0 commit comments

Comments
 (0)