Skip to content

Commit 87dace5

Browse files
committed
remove the random new lines
1 parent dd7b334 commit 87dace5

12 files changed

+0
-30
lines changed

src/pages/RepoPage/CoverageTab/OverviewTab/subroute/Fileviewer/Fileviewer.test.jsx

-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ const mockCoverage = {
107107
components: [],
108108
coverageFile: {
109109
hashedPath: 'hashed-path',
110-
111110
content:
112111
'import pytest\nfrom path1 import index\n\ndef test_uncovered_if():\n assert index.uncovered_if() == False\n\ndef test_fully_covered():\n assert index.fully_covered() == True\n\n\n\n\n',
113112
coverage: [

src/services/comparison/useComparisonForCommitAndParent/useComparisonForCommitAndParent.test.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ const commitid = 'sha123'
1515
const mockImpactedFile = {
1616
headName: 'flag1/file.js',
1717
hashedPath: 'hashedFilePath',
18-
1918
isNewFile: false,
2019
isRenamedFile: false,
2120
isDeletedFile: false,
@@ -187,7 +186,6 @@ describe('useComparisonForCommitAndParent', () => {
187186
coverage: 100,
188187
},
189188
headName: 'flag1/file.js',
190-
191189
isDeletedFile: false,
192190
isNewFile: false,
193191
isRenamedFile: false,

src/services/file/useCommitBasedCoverageForFileViewer.test.jsx

-3
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ describe('useCommitBasedCoverageForFileViewer', () => {
151151
},
152152
flagNames: [],
153153
hashedPath: 'hashedPath',
154-
155154
totals: 53.43,
156155
isLoading: false,
157156
}
@@ -173,7 +172,6 @@ describe('useCommitBasedCoverageForFileViewer', () => {
173172
{ line: 2, coverage: 'H' },
174173
],
175174
totals: { percentCovered: 23.43 },
176-
177175
hashedPath: 'hashedPath',
178176
}
179177

@@ -231,7 +229,6 @@ describe('useCommitBasedCoverageForFileViewer', () => {
231229
totals: 13.63,
232230
flagNames: selectedFlags,
233231
componentNames: [],
234-
235232
hashedPath: 'hashedPath',
236233
isLoading: false,
237234
}

src/services/pathContents/commit/dir/useRepoCommitContents.test.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ describe('useRepoCommitContents', () => {
204204
percentCovered: 50,
205205
__typename: 'PathContentFile',
206206
hits: 24,
207-
208207
lines: 22,
209208
misses: 24,
210209
path: null,

src/services/pathContents/commit/file/usePrefetchCommitFileEntry.test.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ describe('usePrefetchCommitFileEntry', () => {
187187
flagNames: ['a', 'b'],
188188
componentNames: [],
189189
hashedPath: 'hashed-path',
190-
191190
totals: 66.67,
192191
}
193192

src/services/pathContents/pull/file/usePrefetchPullFileEntry.test.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ const mockData = {
5555
components: [],
5656
coverageFile: {
5757
hashedPath: 'afsd',
58-
5958
content:
6059
'import pytest\nfrom path1 import index\n\ndef test_uncovered_if():\n assert index.uncovered_if() == False\n\ndef test_fully_covered():\n assert index.fully_covered() == True\n\n\n\n\n',
6160
coverage: [
@@ -169,7 +168,6 @@ describe('usePrefetchPullFileEntry', () => {
169168
},
170169
flagNames: ['a', 'b'],
171170
componentNames: [],
172-
173171
totals: 100,
174172
})
175173
})

src/services/pathContents/useFileWithMainCoverage.test.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const mockCommitDetails = {
1616
components: [{ id: 'dir_component', name: 'component' }],
1717
coverageFile: {
1818
hashedPath: 'hashedPath',
19-
2019
content:
2120
'import pytest\nfrom path1 import index\n\ndef test_uncovered_if():\n assert index.uncovered_if() == False\n\ndef test_fully_covered():\n assert index.fully_covered() == True\n\n\n\n\n',
2221
coverage: [
@@ -204,7 +203,6 @@ describe('useFileWithMainCoverage', () => {
204203
totals: 100,
205204
flagNames: ['a', 'b'],
206205
componentNames: ['component'],
207-
208206
coverage: _.chain(
209207
mockBranchCoverage.head.coverageAnalytics.coverageFile.coverage
210208
)

src/services/pull/usePrefetchSingleFileComp.test.tsx

-8
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const mockData = {
1919
isNewFile: true,
2020
isRenamedFile: false,
2121
isDeletedFile: false,
22-
2322
changeCoverage: null,
2423
baseCoverage: null,
2524
headCoverage: null,
@@ -45,7 +44,6 @@ const mockRenamedFile = {
4544
isNewFile: false,
4645
isRenamedFile: true,
4746
isDeletedFile: false,
48-
4947
changeCoverage: null,
5048
baseCoverage: null,
5149
headCoverage: null,
@@ -71,7 +69,6 @@ const mockDeletedFile = {
7169
isNewFile: false,
7270
isRenamedFile: false,
7371
isDeletedFile: true,
74-
7572
changeCoverage: null,
7673
baseCoverage: null,
7774
headCoverage: null,
@@ -97,7 +94,6 @@ const mockUnchangedFile = {
9794
isNewFile: false,
9895
isRenamedFile: false,
9996
isDeletedFile: false,
100-
10197
changeCoverage: null,
10298
baseCoverage: null,
10399
headCoverage: null,
@@ -253,7 +249,6 @@ describe('usePrefetchSingleFileComp', () => {
253249
fileLabel: 'New',
254250
headName: 'file A',
255251
hashedPath: 'hashed-path',
256-
257252
segments: [],
258253
})
259254
})
@@ -289,7 +284,6 @@ describe('usePrefetchSingleFileComp', () => {
289284
fileLabel: 'Renamed',
290285
headName: 'file A',
291286
hashedPath: 'hashed-path',
292-
293287
segments: [],
294288
})
295289
})
@@ -325,7 +319,6 @@ describe('usePrefetchSingleFileComp', () => {
325319
fileLabel: 'Deleted',
326320
headName: 'file A',
327321
hashedPath: 'hashed-path',
328-
329322
segments: [],
330323
})
331324
})
@@ -361,7 +354,6 @@ describe('usePrefetchSingleFileComp', () => {
361354
fileLabel: null,
362355
headName: 'file A',
363356
hashedPath: 'hashed-path',
364-
365357
segments: [],
366358
})
367359
})

src/services/pull/usePullCompareTotalsTeam.test.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const mockCompareData = {
2323
{
2424
headName: 'src/App.tsx',
2525
missesCount: 0,
26-
2726
patchCoverage: { coverage: 100 },
2827
},
2928
],
@@ -141,7 +140,6 @@ describe('usePullCompareTotalsTeam', () => {
141140
{
142141
headName: 'src/App.tsx',
143142
missesCount: 0,
144-
145143
patchCoverage: {
146144
coverage: 100,
147145
},

src/services/pull/usePullTeam.test.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ const mockCompareData = {
2323
{
2424
headName: 'src/App.tsx',
2525
missesCount: 0,
26-
2726
patchCoverage: { coverage: 100 },
2827
},
2928
],
@@ -52,7 +51,6 @@ const mockPullData = {
5251
{
5352
headName: 'src/App.jsx',
5453
missesCount: 0,
55-
5654
patchCoverage: {
5755
coverage: 100,
5856
},
@@ -182,7 +180,6 @@ describe('usePullTeam', () => {
182180
{
183181
headName: 'src/App.tsx',
184182
missesCount: 0,
185-
186183
patchCoverage: {
187184
coverage: 100,
188185
},
@@ -406,7 +403,6 @@ describe('usePullTeam polling', () => {
406403
{
407404
headName: 'src/App.tsx',
408405
missesCount: 0,
409-
410406
patchCoverage: {
411407
coverage: 100,
412408
},

src/services/pull/useSingularImpactedFileComparison.test.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ const mockResponse = {
6464
isRenamedFile: false,
6565
isNewFile: false,
6666
isDeletedFile: false,
67-
6867
baseCoverage: {
6968
percentCovered: 23,
7069
},
@@ -167,7 +166,6 @@ describe('useSingularImpactedFileComparison', () => {
167166
fileLabel: null,
168167
hashedPath: 'hashedPath',
169168
headName: 'headName',
170-
171169
segments: [
172170
{
173171
hasUnintendedChanges: false,

src/services/pull/utils/transformImpactedPullFileToDiff.test.ts

-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ describe('transformImpactedPullFileToDiff', () => {
88
isRenamedFile: false,
99
isNewFile: false,
1010
isDeletedFile: false,
11-
1211
baseCoverage: {
1312
percentCovered: 23,
1413
},
@@ -42,7 +41,6 @@ describe('transformImpactedPullFileToDiff', () => {
4241
fileLabel: null,
4342
hashedPath: 'hashedPath',
4443
headName: 'headName',
45-
4644
segments: [
4745
{
4846
hasUnintendedChanges: false,

0 commit comments

Comments
 (0)