2
0
Fork 0
mirror of https://code.forgejo.org/docker/metadata-action.git synced 2025-06-27 21:05:53 +00:00

chore: update dev dependencies and workflow

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2022-03-22 21:09:00 +01:00
parent 47c365107c
commit e99ab50e6c
No known key found for this signature in database
GPG key ID: 3248E46B6BB8C7F7
20 changed files with 2552 additions and 40207 deletions

View file

@ -1,8 +1,9 @@
import * as path from 'path';
import {describe, expect, jest, it} from '@jest/globals';
import * as github from '../src/github';
import * as repoFixture from './fixtures/repo.json';
jest.spyOn(github, 'repo').mockImplementation((): Promise<github.ReposGetResponseData> => {
return <Promise<github.ReposGetResponseData>>require(path.join(__dirname, 'fixtures', 'repo.json'));
return <Promise<github.ReposGetResponseData>>(repoFixture as unknown);
});
describe('repo', () => {