Skip to content

Commit 70571d4

Browse files
committed
Auto reformat code via standard --fix
1 parent 2442580 commit 70571d4

File tree

3 files changed

+42
-47
lines changed

3 files changed

+42
-47
lines changed

app.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ const getRequestedOptions = exports.getRequestedOptions = function (username, pa
9292
const main = exports.main = function (data, requestedOptions) {
9393
logExceptOnTest('Requesting API...')
9494
requestBody(requestedOptions, (error, response, body) => {
95-
9695
linkObject = responseToObject(response.headers)
9796

9897
// take body, parse it and add it to data

test/app-test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ describe('downloadGitIssues', function () {
107107
sinon
108108
.stub(request, 'get')
109109
.yields(null, dummyData.response2Page, JSON.stringify(dummyData.testIssues))
110-
111110
})
112111

113112
after(function () {
@@ -121,7 +120,5 @@ describe('downloadGitIssues', function () {
121120

122121
assert(main.calledOnce)
123122
})
124-
125123
})
126-
127124
})

test/dummy-data.js

Lines changed: 42 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -280,47 +280,47 @@ module.exports = {
280280
closed_at: null,
281281
body: ''
282282
},
283-
{
284-
url: 'https://api.github.com/repos/pavelbinar/ro_convert-github-issues-to-csv/issues/20',
285-
repository_url: 'https://api.github.com/repos/pavelbinar/ro_convert-github-issues-to-csv',
286-
labels_url: 'https://api.github.com/repos/pavelbinar/ro_convert-github-issues-to-csv/issues/20/labels{/name}',
287-
comments_url: 'https://api.github.com/repos/pavelbinar/ro_convert-github-issues-to-csv/issues/20/comments',
288-
events_url: 'https://api.github.com/repos/pavelbinar/ro_convert-github-issues-to-csv/issues/20/events',
289-
html_url: 'https://github.com/pavelbinar/ro_convert-github-issues-to-csv/issues/20',
290-
id: 227380004,
291-
number: 20,
292-
title: 'issue twenty',
293-
user: {
294-
login: 'lukasvesely98',
295-
id: 27784113,
296-
avatar_url: 'https://avatars1.githubusercontent.com/u/27784113?v=3',
297-
gravatar_id: '',
298-
url: 'https://api.github.com/users/lukasvesely98',
299-
html_url: 'https://github.com/lukasvesely98',
300-
followers_url: 'https://api.github.com/users/lukasvesely98/followers',
301-
following_url: 'https://api.github.com/users/lukasvesely98/following{/other_user}',
302-
gists_url: 'https://api.github.com/users/lukasvesely98/gists{/gist_id}',
303-
starred_url: 'https://api.github.com/users/lukasvesely98/starred{/owner}{/repo}',
304-
subscriptions_url: 'https://api.github.com/users/lukasvesely98/subscriptions',
305-
organizations_url: 'https://api.github.com/users/lukasvesely98/orgs',
306-
repos_url: 'https://api.github.com/users/lukasvesely98/repos',
307-
events_url: 'https://api.github.com/users/lukasvesely98/events{/privacy}',
308-
received_events_url: 'https://api.github.com/users/lukasvesely98/received_events',
309-
type: 'User',
310-
site_admin: false
311-
},
312-
labels: [],
313-
state: 'open',
314-
locked: false,
315-
assignee: null,
316-
assignees: [],
317-
milestone: null,
318-
comments: 0,
319-
created_at: '2017-05-09T14:10:14Z',
320-
updated_at: '2017-05-19T16:36:18Z',
321-
closed_at: null,
322-
body: ''
323-
}],
283+
{
284+
url: 'https://api.github.com/repos/pavelbinar/ro_convert-github-issues-to-csv/issues/20',
285+
repository_url: 'https://api.github.com/repos/pavelbinar/ro_convert-github-issues-to-csv',
286+
labels_url: 'https://api.github.com/repos/pavelbinar/ro_convert-github-issues-to-csv/issues/20/labels{/name}',
287+
comments_url: 'https://api.github.com/repos/pavelbinar/ro_convert-github-issues-to-csv/issues/20/comments',
288+
events_url: 'https://api.github.com/repos/pavelbinar/ro_convert-github-issues-to-csv/issues/20/events',
289+
html_url: 'https://github.com/pavelbinar/ro_convert-github-issues-to-csv/issues/20',
290+
id: 227380004,
291+
number: 20,
292+
title: 'issue twenty',
293+
user: {
294+
login: 'lukasvesely98',
295+
id: 27784113,
296+
avatar_url: 'https://avatars1.githubusercontent.com/u/27784113?v=3',
297+
gravatar_id: '',
298+
url: 'https://api.github.com/users/lukasvesely98',
299+
html_url: 'https://github.com/lukasvesely98',
300+
followers_url: 'https://api.github.com/users/lukasvesely98/followers',
301+
following_url: 'https://api.github.com/users/lukasvesely98/following{/other_user}',
302+
gists_url: 'https://api.github.com/users/lukasvesely98/gists{/gist_id}',
303+
starred_url: 'https://api.github.com/users/lukasvesely98/starred{/owner}{/repo}',
304+
subscriptions_url: 'https://api.github.com/users/lukasvesely98/subscriptions',
305+
organizations_url: 'https://api.github.com/users/lukasvesely98/orgs',
306+
repos_url: 'https://api.github.com/users/lukasvesely98/repos',
307+
events_url: 'https://api.github.com/users/lukasvesely98/events{/privacy}',
308+
received_events_url: 'https://api.github.com/users/lukasvesely98/received_events',
309+
type: 'User',
310+
site_admin: false
311+
},
312+
labels: [],
313+
state: 'open',
314+
locked: false,
315+
assignee: null,
316+
assignees: [],
317+
milestone: null,
318+
comments: 0,
319+
created_at: '2017-05-09T14:10:14Z',
320+
updated_at: '2017-05-19T16:36:18Z',
321+
closed_at: null,
322+
body: ''
323+
}],
324324

325325
response1Page: {
326326
'statusCode': 200,
@@ -414,7 +414,6 @@ module.exports = {
414414
}
415415
},
416416

417-
repo : 'https://github.com/pavelbinar/ro_convert-github-issues-to-csv'
418-
417+
repo: 'https://github.com/pavelbinar/ro_convert-github-issues-to-csv'
419418

420419
}

0 commit comments

Comments
 (0)