Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
lint
  • Loading branch information
Bryan MacFarlane committed Mar 27, 2020
1 parent 3422318 commit 74c8095
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions __tests__/setup-go.test.ts
Expand Up @@ -326,10 +326,10 @@ describe('setup-go', () => {
});

interface Annotation {
file: string,
line: number,
column: number,
message: string
file: string;
line: number;
column: number;
message: string;
}

//
Expand All @@ -347,7 +347,7 @@ describe('setup-go', () => {
}

return annotation;
}
}

it('matches on rooted unix path', async () => {
let line = '/assert.go:4:1: missing return at end of function';
Expand All @@ -367,7 +367,7 @@ describe('setup-go', () => {
expect(annotation.column).toBe(1);
expect(annotation.file).toBe('./a/path/assert.go');
expect(annotation.message).toBe('missing return at end of function');
});
});

it('matches on rooted unix path', async () => {
let line = '/assert.go:4:1: missing return at end of function';
Expand All @@ -377,7 +377,7 @@ describe('setup-go', () => {
expect(annotation.column).toBe(1);
expect(annotation.file).toBe('/assert.go');
expect(annotation.message).toBe('missing return at end of function');
});
});

it('matches on rooted unix path with whitespace', async () => {
let line = ' /assert.go:5:2: missing return at end of function ';
Expand All @@ -387,9 +387,7 @@ describe('setup-go', () => {
expect(annotation.column).toBe(2);
expect(annotation.file).toBe('/assert.go');
expect(annotation.message).toBe('missing return at end of function');
});


});

// 1.13.1 => 1.13.1
// 1.13 => 1.13.0
Expand Down

0 comments on commit 74c8095

Please sign in to comment.