fix: slug template variable (#795)

This commit is contained in:
Daniel Lautzenheiser
2023-05-10 12:26:39 -04:00
committed by GitHub
parent d28c43e95a
commit 8ee9a464ab
12 changed files with 884 additions and 32 deletions

View File

@ -6,7 +6,7 @@ import type { Options } from '../API';
describe('gitea API', () => {
beforeEach(() => {
jest.resetAllMocks();
jest.clearAllMocks();
global.fetch = jest.fn().mockRejectedValue(new Error('should not call fetch inside tests'));
});
@ -29,7 +29,7 @@ describe('gitea API', () => {
});
afterEach(() => {
jest.resetAllMocks();
jest.clearAllMocks();
});
it('should fetch url with authorization header', async () => {

View File

@ -6,7 +6,7 @@ import type { Options } from '../API';
describe('github API', () => {
beforeEach(() => {
jest.resetAllMocks();
jest.clearAllMocks();
global.fetch = jest.fn().mockRejectedValue(new Error('should not call fetch inside tests'));
});
@ -65,7 +65,7 @@ describe('github API', () => {
});
afterEach(() => {
jest.resetAllMocks();
jest.clearAllMocks();
});
it('should fetch url with authorization header', async () => {

View File

@ -5,7 +5,7 @@ global.fetch = jest.fn().mockRejectedValue(new Error('should not call fetch insi
describe('GitLab API', () => {
beforeEach(() => {
jest.resetAllMocks();
jest.clearAllMocks();
});
afterAll(() => {