Skip to content

Commit f6efe56

Browse files
authored
Merge pull request #109 from crazy-max/dev-deps
Update dev deps
2 parents 6c228c6 + c15e83f commit f6efe56

File tree

5 files changed

+2073
-2254
lines changed

5 files changed

+2073
-2254
lines changed

__tests__/github.test.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import * as path from 'path';
22
import * as github from '../src/github';
33

4-
jest.spyOn(github, 'repo').mockImplementation(
5-
(): Promise<github.ReposGetResponseData> => {
6-
return <Promise<github.ReposGetResponseData>>require(path.join(__dirname, 'fixtures', 'repo.json'));
7-
}
8-
);
4+
jest.spyOn(github, 'repo').mockImplementation((): Promise<github.ReposGetResponseData> => {
5+
return <Promise<github.ReposGetResponseData>>require(path.join(__dirname, 'fixtures', 'repo.json'));
6+
});
97

108
describe('repo', () => {
119
it('returns GitHub repository', async () => {

__tests__/meta.test.ts

+6-10
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,13 @@ import * as github from '../src/github';
77
import {Meta, Version} from '../src/meta';
88
import {Context} from '@actions/github/lib/context';
99

10-
jest.spyOn(github, 'repo').mockImplementation(
11-
(): Promise<github.ReposGetResponseData> => {
12-
return <Promise<github.ReposGetResponseData>>require(path.join(__dirname, 'fixtures', 'repo.json'));
13-
}
14-
);
10+
jest.spyOn(github, 'repo').mockImplementation((): Promise<github.ReposGetResponseData> => {
11+
return <Promise<github.ReposGetResponseData>>require(path.join(__dirname, 'fixtures', 'repo.json'));
12+
});
1513

16-
jest.spyOn(github, 'context').mockImplementation(
17-
(): Context => {
18-
return new Context();
19-
}
20-
);
14+
jest.spyOn(github, 'context').mockImplementation((): Context => {
15+
return new Context();
16+
});
2117

2218
jest.spyOn(global.Date.prototype, 'toISOString').mockImplementation(() => {
2319
return '2020-01-10T00:30:00.000Z';

0 commit comments

Comments
 (0)