mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 10:35:57 +03:00
They were missing trailing newlines, so as you can see in the diff, some transcripts had invalid output.
953 B
953 B
List Projects And Branches Test
-- Should list all projects
GET /api/projects
[
{
"projectName": "project-one"
},
{
"projectName": "project-three"
},
{
"projectName": "project-two"
},
{
"projectName": "scratch"
}
]
-- Should list projects starting with project-t
GET /api/projects?prefix=project-t
[
{
"projectName": "project-three"
},
{
"projectName": "project-two"
}
]
-- Should list all branches
GET /api/projects/project-one/branches
[
{
"branchName": "branch-one"
},
{
"branchName": "branch-three"
},
{
"branchName": "branch-two"
},
{
"branchName": "main"
}
]
-- Should list all branches beginning with branch-t
GET /api/projects/project-one/branches?prefix=branch-t
[
{
"branchName": "branch-three"
},
{
"branchName": "branch-two"
}
]