Add tests
This commit is contained in:
parent
fab18ed4a9
commit
a2a6036c65
4 changed files with 18 additions and 2 deletions
|
|
@ -312,7 +312,7 @@ func TestIssueView_Preview(t *testing.T) {
|
|||
`Open • marseilles opened about 292 years ago • 9 comments`,
|
||||
`Assignees: marseilles, monaco\n`,
|
||||
`Labels: one, two, three, four, five\n`,
|
||||
`Projects: Project 1 \(column A\), Project 2 \(column B\), Project 3 \(column C\)\n`,
|
||||
`Projects: Project 1 \(column A\), Project 2 \(column B\), Project 3 \(column C\), Project 4 \(Awaiting triage\)\n`,
|
||||
`Milestone: uluru\n`,
|
||||
`bold story`,
|
||||
`View this issue on GitHub: https://github.com/OWNER/REPO/issues/123`,
|
||||
|
|
|
|||
|
|
@ -429,7 +429,7 @@ func TestPRView_Preview(t *testing.T) {
|
|||
`Open • nobody wants to merge 12 commits into master from blueberries`,
|
||||
`Assignees: marseilles, monaco\n`,
|
||||
`Labels: one, two, three, four, five\n`,
|
||||
`Projects: Project 1 \(column A\), Project 2 \(column B\), Project 3 \(column C\)\n`,
|
||||
`Projects: Project 1 \(column A\), Project 2 \(column B\), Project 3 \(column C\), Project 4 \(Awaiting triage\)\n`,
|
||||
`Milestone: uluru\n`,
|
||||
`blueberries taste good`,
|
||||
`View this pull request on GitHub: https://github.com/OWNER/REPO/pull/12\n`,
|
||||
|
|
|
|||
|
|
@ -67,6 +67,14 @@
|
|||
"column": {
|
||||
"name": "column C"
|
||||
}
|
||||
},
|
||||
{
|
||||
"project": {
|
||||
"name": "Project 4"
|
||||
},
|
||||
"column": {
|
||||
"name": ""
|
||||
}
|
||||
}
|
||||
],
|
||||
"totalcount": 3
|
||||
|
|
|
|||
|
|
@ -66,6 +66,14 @@
|
|||
"column": {
|
||||
"name": "column C"
|
||||
}
|
||||
},
|
||||
{
|
||||
"project": {
|
||||
"name": "Project 4"
|
||||
},
|
||||
"column": {
|
||||
"name": ""
|
||||
}
|
||||
}
|
||||
],
|
||||
"totalcount": 3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue