Skip to content

Commit

Permalink
Merge pull request #109 from crazy-max/dev-deps
Browse files Browse the repository at this point in the history
Update dev deps
  • Loading branch information
crazy-max authored Jul 6, 2021
2 parents 6c228c6 + c15e83f commit f6efe56
Show file tree
Hide file tree
Showing 5 changed files with 2,073 additions and 2,254 deletions.
8 changes: 3 additions & 5 deletions __tests__/github.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import * as path from 'path';
import * as github from '../src/github';

jest.spyOn(github, 'repo').mockImplementation(
(): Promise<github.ReposGetResponseData> => {
return <Promise<github.ReposGetResponseData>>require(path.join(__dirname, 'fixtures', 'repo.json'));
}
);
jest.spyOn(github, 'repo').mockImplementation((): Promise<github.ReposGetResponseData> => {
return <Promise<github.ReposGetResponseData>>require(path.join(__dirname, 'fixtures', 'repo.json'));
});

describe('repo', () => {
it('returns GitHub repository', async () => {
Expand Down
16 changes: 6 additions & 10 deletions __tests__/meta.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,13 @@ import * as github from '../src/github';
import {Meta, Version} from '../src/meta';
import {Context} from '@actions/github/lib/context';

jest.spyOn(github, 'repo').mockImplementation(
(): Promise<github.ReposGetResponseData> => {
return <Promise<github.ReposGetResponseData>>require(path.join(__dirname, 'fixtures', 'repo.json'));
}
);
jest.spyOn(github, 'repo').mockImplementation((): Promise<github.ReposGetResponseData> => {
return <Promise<github.ReposGetResponseData>>require(path.join(__dirname, 'fixtures', 'repo.json'));
});

jest.spyOn(github, 'context').mockImplementation(
(): Context => {
return new Context();
}
);
jest.spyOn(github, 'context').mockImplementation((): Context => {
return new Context();
});

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

0 comments on commit f6efe56

Please sign in to comment.