Skip to content

Commit 798bc16

Browse files
committed
Fix tests to cleanup
1 parent f1211a3 commit 798bc16

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

__tests__/annotation.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe('annotation.ts', () => {
66
jest.resetAllMocks()
77
})
88

9-
it('test Annotation.constructor with Warning', () => {
9+
it('Annotation.constructor with Warning', () => {
1010
const annotation = new Annotation(
1111
'Warning',
1212
'Useless parent layout: This `RelativeLayout` layout or its `FrameLayout` parent is useless; transfer the `background` attribute to the other view',
@@ -25,7 +25,7 @@ describe('annotation.ts', () => {
2525
})
2626
})
2727

28-
it('test Annotation.constructor with Error', () => {
28+
it('Annotation.constructor with Error', () => {
2929
const annotation = new Annotation(
3030
'Error',
3131
'Ignoring results: The result of `subscribe` is not used',
@@ -44,7 +44,7 @@ describe('annotation.ts', () => {
4444
})
4545
})
4646

47-
it('test Annotation.constructor with Other', () => {
47+
it('Annotation.constructor with Other', () => {
4848
const annotation = new Annotation('', '', 'layout.xml', 0, 0)
4949
expect(annotation.severityLevel).toEqual('warning')
5050
})

__tests__/main.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('main.ts', () => {
2828
jest.resetAllMocks()
2929
})
3030

31-
it('test runs', async () => {
31+
it('runs', async () => {
3232
core.getInput.mockImplementation((name) => {
3333
switch (name) {
3434
case 'report-path':
@@ -46,7 +46,7 @@ describe('main.ts', () => {
4646
)
4747
})
4848

49-
it('test runs without error', async () => {
49+
it('runs without error', async () => {
5050
core.getInput.mockImplementation((name) => {
5151
switch (name) {
5252
case 'report-path':

__tests__/parser.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('parser.ts', () => {
1111
jest.resetAllMocks()
1212
})
1313

14-
it('test parseXmls', async () => {
14+
it('parseXmls', async () => {
1515
const file1 = path.join(__dirname, 'resource', 'lint-results.xml')
1616
const file2 = path.join(__dirname, 'resource', 'empty-results.xml')
1717

@@ -36,7 +36,7 @@ describe('parser.ts', () => {
3636
])
3737
})
3838

39-
it('test parseXmls and ignore warnings', async () => {
39+
it('parseXmls and ignore warnings', async () => {
4040
const file1 = path.join(__dirname, 'resource', 'lint-results.xml')
4141
const file2 = path.join(__dirname, 'resource', 'empty-results.xml')
4242

@@ -53,7 +53,7 @@ describe('parser.ts', () => {
5353
])
5454
})
5555

56-
it('test parseXml with issues', async () => {
56+
it('parseXml with issues', async () => {
5757
const xml = `<?xml version="1.0" encoding="UTF-8"?>
5858
<issues format="6" by="lint 7.2.1">
5959
<issue
@@ -83,7 +83,7 @@ describe('parser.ts', () => {
8383
await expect(parseXml(xml, false)).resolves.toEqual([annotation])
8484
})
8585

86-
it('test parseXml without issue', async () => {
86+
it('parseXml without issue', async () => {
8787
const xml = `<?xml version="1.0" encoding="UTF-8"?>
8888
<issues format="6" by="lint 7.2.1">
8989
</issues>`

0 commit comments

Comments
 (0)