Skip to content

Commit 2712ef0

Browse files
author
nate smith
committed
fix tests to account for padding
1 parent dc03417 commit 2712ef0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/cmd/status/status_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func TestStatusRun(t *testing.T) {
9595
httpmock.StringResponse(`[]`))
9696
},
9797
opts: &StatusOptions{},
98-
wantOut: "Assigned Issues │Assigned PRs \nNothing here ^_^ │Nothing here ^_^ \n\nReview Requests │Mentions \nNothing here ^_^ │Nothing here ^_^ \n\nRepository Activity\nNothing here ^_^\n\n",
98+
wantOut: "Assigned Issues │ Assigned Pull Requests \nNothing here ^_^ │ Nothing here ^_^ \n \nReview Requests │ Mentions \nNothing here ^_^ │ Nothing here ^_^ \n \nRepository Activity\nNothing here ^_^\n\n",
9999
},
100100
{
101101
name: "something",
@@ -144,7 +144,7 @@ func TestStatusRun(t *testing.T) {
144144
httpmock.FileResponse("./fixtures/events.json"))
145145
},
146146
opts: &StatusOptions{},
147-
wantOut: "Assigned Issues │Assigned PRs \nvilmibm/testing#157 yolo │cli/cli#5272 Pin extensions \ncli/cli#3223 Repo garden...│rpd/todo#73 Board up RPD windows \nrpd/todo#514 Reducing zo...│cli/cli#4768 Issue Frecency \nvilmibm/testing#74 welp │ \nadreyer/arkestrator#22 complete mo...│ \n\nReview Requests │Mentions \ncli/cli#5272 Pin extensions │rpd/todo#110 hello @j...\nvilmibm/testing#1234 Foobar │cli/cli#1096 @jillval...\nrpd/todo#50 Welcome party...│vilmibm/gh-screensaver#15 a messag...\ncli/cli#4671 This pull req...│ \nrpd/todo#49 Haircut for Leon│ \n\nRepository Activity\nrpd/todo#5326 new PR Only write UTF-8 BOM on W...\nvilmibm/testing#5325 comment on Ability to sea... We are working on dedicat...\ncli/cli#5319 comment on [Codespaces] D... Wondering if we shouldn't...\ncli/cli#5300 new issue Terminal bell when a runn...\n\n",
147+
wantOut: "Assigned Issues │ Assigned Pull Requests \nvilmibm/testing#157 yolo │ cli/cli#5272 Pin extensions \ncli/cli#3223 Repo garden...│ rpd/todo#73 Board up RPD windows \nrpd/todo#514 Reducing zo...│ cli/cli#4768 Issue Frecency \nvilmibm/testing#74 welp │ \nadreyer/arkestrator#22 complete mo...│ \n\nReview Requests │ Mentions \ncli/cli#5272 Pin extensions │ rpd/todo#110 hello @j...\nvilmibm/testing#1234 Foobar │ cli/cli#1096 @jillval...\nrpd/todo#50 Welcome party...│ vilmibm/gh-screensaver#15 a messag...\ncli/cli#4671 This pull req...│ \nrpd/todo#49 Haircut for Leon│ \n\nRepository Activity\nrpd/todo#5326 new PR Only write UTF-8 BOM on W...\nvilmibm/testing#5325 comment on Ability to sea... We are working on dedicat...\ncli/cli#5319 comment on [Codespaces] D... Wondering if we shouldn't...\ncli/cli#5300 new issue Terminal bell when a runn...\n\n",
148148
},
149149
{
150150
name: "exclude a repository",
@@ -191,7 +191,7 @@ func TestStatusRun(t *testing.T) {
191191
},
192192
// NOTA BENE: you'll see cli/cli in search results because that happens
193193
// server side and the fixture doesn't account for that
194-
wantOut: "Assigned Issues │Assigned PRs \nvilmibm/testing#157 yolo │cli/cli#5272 Pin extensions \ncli/cli#3223 Repo garden...│rpd/todo#73 Board up RPD windows \nrpd/todo#514 Reducing zo...│cli/cli#4768 Issue Frecency \nvilmibm/testing#74 welp │ \nadreyer/arkestrator#22 complete mo...│ \n\nReview Requests │Mentions \ncli/cli#5272 Pin extensions │rpd/todo#110 hello @j...\nvilmibm/testing#1234 Foobar │vilmibm/gh-screensaver#15 a messag...\nrpd/todo#50 Welcome party...│ \ncli/cli#4671 This pull req...│ \nrpd/todo#49 Haircut for Leon│ \n\nRepository Activity\nrpd/todo#5326 new PR Only write UTF-8 BOM on W...\nvilmibm/testing#5325 comment on Ability to sea... We are working on dedicat...\n\n",
194+
wantOut: "Assigned Issues │ Assigned Pull Requests \nvilmibm/testing#157 yolo │ cli/cli#5272 Pin extensions \ncli/cli#3223 Repo garden...│ rpd/todo#73 Board up RPD windows \nrpd/todo#514 Reducing zo...│ cli/cli#4768 Issue Frecency \nvilmibm/testing#74 welp │ \nadreyer/arkestrator#22 complete mo...│ \n\nReview Requests │ Mentions \ncli/cli#5272 Pin extensions │ rpd/todo#110 hello @j...\nvilmibm/testing#1234 Foobar │ vilmibm/gh-screensaver#15 a messag...\nrpd/todo#50 Welcome party...│ \ncli/cli#4671 This pull req...│ \nrpd/todo#49 Haircut for Leon│ \n\nRepository Activity\nrpd/todo#5326 new PR Only write UTF-8 BOM on W...\nvilmibm/testing#5325 comment on Ability to sea... We are working on dedicat...\n\n",
195195
},
196196
{
197197
name: "exclude repositories",
@@ -220,7 +220,7 @@ func TestStatusRun(t *testing.T) {
220220
},
221221
// NOTA BENE: you'll see cli/cli in search results because that happens
222222
// server side and the fixture doesn't account for that
223-
wantOut: "Assigned Issues │Assigned PRs \nvilmibm/testing#157 yolo │cli/cli#5272 Pin extensions \ncli/cli#3223 Repo garden...│rpd/todo#73 Board up RPD windows \nrpd/todo#514 Reducing zo...│cli/cli#4768 Issue Frecency \nvilmibm/testing#74 welp │ \nadreyer/arkestrator#22 complete mo...│ \n\nReview Requests │Mentions \ncli/cli#5272 Pin extensions │vilmibm/gh-screensaver#15 a messag...\nvilmibm/testing#1234 Foobar │ \nrpd/todo#50 Welcome party...│ \ncli/cli#4671 This pull req...│ \nrpd/todo#49 Haircut for Leon│ \n\nRepository Activity\nvilmibm/testing#5325 comment on Ability to sea... We are working on dedicat...\n\n",
223+
wantOut: "Assigned Issues │ Assigned Pull Requests \nvilmibm/testing#157 yolo │ cli/cli#5272 Pin extensions \ncli/cli#3223 Repo garden...│ rpd/todo#73 Board up RPD windows \nrpd/todo#514 Reducing zo...│ cli/cli#4768 Issue Frecency \nvilmibm/testing#74 welp │ \nadreyer/arkestrator#22 complete mo...│ \n\nReview Requests │ Mentions \ncli/cli#5272 Pin extensions │ vilmibm/gh-screensaver#15 a messag...\nvilmibm/testing#1234 Foobar │ \nrpd/todo#50 Welcome party...│ \ncli/cli#4671 This pull req...│ \nrpd/todo#49 Haircut for Leon│ \n\nRepository Activity\nvilmibm/testing#5325 comment on Ability to sea... We are working on dedicat...\n\n",
224224
},
225225
{
226226
name: "filter to an org",
@@ -259,7 +259,7 @@ func TestStatusRun(t *testing.T) {
259259
opts: &StatusOptions{
260260
Org: "rpd",
261261
},
262-
wantOut: "Assigned Issues │Assigned PRs \nvilmibm/testing#157 yolo │cli/cli#5272 Pin extensions \ncli/cli#3223 Repo garden...│rpd/todo#73 Board up RPD windows \nrpd/todo#514 Reducing zo...│cli/cli#4768 Issue Frecency \nvilmibm/testing#74 welp │ \nadreyer/arkestrator#22 complete mo...│ \n\nReview Requests │Mentions \ncli/cli#5272 Pin extensions │rpd/todo#110 hello @jillvalentine ...\nvilmibm/testing#1234 Foobar │ \nrpd/todo#50 Welcome party...│ \ncli/cli#4671 This pull req...│ \nrpd/todo#49 Haircut for Leon│ \n\nRepository Activity\nrpd/todo#5326 new PR Only write UTF-8 BOM on Windows where it is needed\n\n",
262+
wantOut: "Assigned Issues │ Assigned Pull Requests \nvilmibm/testing#157 yolo │ cli/cli#5272 Pin extensions \ncli/cli#3223 Repo garden...│ rpd/todo#73 Board up RPD windows \nrpd/todo#514 Reducing zo...│ cli/cli#4768 Issue Frecency \nvilmibm/testing#74 welp │ \nadreyer/arkestrator#22 complete mo...│ \n\nReview Requests │ Mentions \ncli/cli#5272 Pin extensions │ rpd/todo#110 hello @jillvalentine ...\nvilmibm/testing#1234 Foobar │ \nrpd/todo#50 Welcome party...│ \ncli/cli#4671 This pull req...│ \nrpd/todo#49 Haircut for Leon│ \n\nRepository Activity\nrpd/todo#5326 new PR Only write UTF-8 BOM on Windows where it is needed\n\n",
263263
},
264264
}
265265

0 commit comments

Comments
 (0)