@@ -44,7 +44,7 @@ func TestListUserProjects(t *testing.T) {
4444 mux .HandleFunc (fmt .Sprintf ("/api/v4/users/%s/projects" , w .Owner .Name ),
4545 func (w http.ResponseWriter , r * http.Request ) {
4646 assert .Equal (t , r .Method , "GET" )
47- fmt .Fprint (w , `[{"id":1,"path_with_namespace":"foo/bar","jobs_enabled":true },{"id":2,"path_with_namespace":"bar/baz","jobs_enabled":true }]` )
47+ fmt .Fprint (w , `[{"id":1,"path_with_namespace":"foo/bar"},{"id":2,"path_with_namespace":"bar/baz"}]` )
4848 })
4949
5050 projects , err := c .ListProjects (ctx , w )
@@ -70,7 +70,7 @@ func TestListGroupProjects(t *testing.T) {
7070 mux .HandleFunc (fmt .Sprintf ("/api/v4/groups/%s/projects" , w .Owner .Name ),
7171 func (w http.ResponseWriter , r * http.Request ) {
7272 assert .Equal (t , r .Method , "GET" )
73- fmt .Fprint (w , `[{"id":1,"path_with_namespace":"foo/bar","jobs_enabled":true },{"id":2,"path_with_namespace":"bar/baz","jobs_enabled":true }]` )
73+ fmt .Fprint (w , `[{"id":1,"path_with_namespace":"foo/bar"},{"id":2,"path_with_namespace":"bar/baz"}]` )
7474 })
7575
7676 projects , err := c .ListProjects (ctx , w )
@@ -96,7 +96,7 @@ func TestListProjects(t *testing.T) {
9696 mux .HandleFunc ("/api/v4/projects" ,
9797 func (w http.ResponseWriter , r * http.Request ) {
9898 assert .Equal (t , r .Method , "GET" )
99- fmt .Fprint (w , `[{"id":1,"path_with_namespace":"foo","jobs_enabled":false},{"id": 2,"path_with_namespace":"bar","jobs_enabled":true }]` )
99+ fmt .Fprint (w , `[{"id":2,"path_with_namespace":"bar"}]` )
100100 })
101101
102102 projects , err := c .ListProjects (ctx , w )
0 commit comments