@@ -8,7 +8,7 @@ export const MOCK_HEADERS: ApiOptions = {
88
99export const MOCK_REPOS = [
1010 {
11- name : " repo1" ,
11+ name : ' repo1' ,
1212 archived : false ,
1313 created_at : '2015-12-10T11:48:11Z' ,
1414 description : 'Best repo 1' ,
@@ -18,7 +18,7 @@ export const MOCK_REPOS = [
1818 visibility : 'public'
1919 } ,
2020 {
21- name : " repo2" ,
21+ name : ' repo2' ,
2222 archived : false ,
2323 created_at : '2018-12-10T11:48:11Z' ,
2424 description : 'Best repo 2' ,
@@ -31,7 +31,7 @@ export const MOCK_REPOS = [
3131
3232export const MOCK_UNMAPPED_RESPONSE_REPO = [
3333 {
34- name : " repo1" ,
34+ name : ' repo1' ,
3535 archived : false ,
3636 created_at : '2015-12-10T11:48:11Z' ,
3737 description : 'Best repo 1' ,
@@ -42,7 +42,7 @@ export const MOCK_UNMAPPED_RESPONSE_REPO = [
4242 test : 'test'
4343 } ,
4444 {
45- name : " repo2" ,
45+ name : ' repo2' ,
4646 archived : false ,
4747 created_at : '2018-12-10T11:48:11Z' ,
4848 description : 'Best repo 2' ,
@@ -80,7 +80,7 @@ export const MOCK_FULL_RESPONSE_MEMBERS = [ ...MOCK_MEMBERS ];
8080
8181export const MOCK_MEMBER_FETCH_RESPONSE = {
8282 httpStatusCode : 200 ,
83- resource : MOCK_MEMBERS . map ( ( { repos_url, ...rest } ) => rest )
83+ resource : MOCK_MEMBERS . map ( ( { repos_url : _repos_url , ...rest } ) => rest )
8484} ;
8585
8686export const MOCK_TEAMS = [
@@ -104,7 +104,7 @@ export const MOCK_TEAMS = [
104104
105105export const MOCK_TEAM_FETCH_RESPONSE = {
106106 httpStatusCode : 200 ,
107- resource : MOCK_TEAMS . map ( ( { members_url, repositories_url, ...rest } ) => rest )
107+ resource : MOCK_TEAMS . map ( ( { members_url : _members_url , repositories_url : _repositories_url , ...rest } ) => rest )
108108} ;
109109
110110export const MOCK_MEMBERS_PER_TEAM = [
@@ -150,22 +150,22 @@ export const MOCK_COLLABORATORS_PER_REPO = [
150150
151151export const MOCK_COLLABORATORS_PER_REPO_RESPONSE = {
152152 httpStatusCode : 200 ,
153- resource : MOCK_COLLABORATORS_PER_REPO . map ( ( { other, ...rest } ) => rest )
153+ resource : MOCK_COLLABORATORS_PER_REPO . map ( ( { other : _other , ...rest } ) => rest )
154154} ;
155155
156156export const MOCK_ISSUE_BODY = {
157- title : " Add member to the team" ,
158- body : " Add member Bob to the team Alice." ,
159- assignees : [ " IDC TEAM" ] ,
160- labels : [ " GIT" ]
157+ title : ' Add member to the team' ,
158+ body : ' Add member Bob to the team Alice.' ,
159+ assignees : [ ' IDC TEAM' ] ,
160+ labels : [ ' GIT' ]
161161} ;
162162
163163export const MOCK_ISSUE_RESPONSE = {
164164 id : 1 ,
165165 number : 1347 ,
166- state : " open" ,
167- title : " Add member to the team" ,
168- body : " Add member Bob to the team Alice."
166+ state : ' open' ,
167+ title : ' Add member to the team' ,
168+ body : ' Add member Bob to the team Alice.'
169169} ;
170170
171171export const MOCK_ERROR = {
@@ -177,9 +177,23 @@ export const MOCK_ERROR_RESPONSE = {
177177 errors : [ MOCK_ERROR ]
178178} ;
179179
180- export const MOCK_403_ERROR_MSG = { " message" : " Must have admin rights to Repository." } ;
180+ export const MOCK_403_ERROR_MSG = { ' message' : ' Must have admin rights to Repository.' } ;
181181
182182export const MOCK_403_ERROR_RESPONSE = {
183183 httpStatusCode : 403 ,
184184 errors : [ MOCK_403_ERROR_MSG ]
185185} ;
186+
187+ export const MOCK_GET = { data : 'test data' } ;
188+
189+ export const MOCK_GET_RESPONSE = {
190+ httpStatusCode : 200 ,
191+ resource : MOCK_GET
192+ } ;
193+
194+ export const MOCK_POST = { success : true } ;
195+
196+ export const MOCK_POST_RESPONSE = {
197+ httpStatusCode : 200 ,
198+ resource : MOCK_POST
199+ } ;
0 commit comments