Skip to content
Snippets Groups Projects
Commit 9d71555b authored by Rhys Arkins's avatar Rhys Arkins
Browse files

tests: fix semantic test

parent 3989d47f
No related branches found
Tags 39.79.0
No related merge requests found
...@@ -3,11 +3,13 @@ jest ...@@ -3,11 +3,13 @@ jest
.dontMock('chalk') .dontMock('chalk')
.dontMock('../../../../lib/workers/repository/init'); .dontMock('../../../../lib/workers/repository/init');
const base = require('../../../../lib/workers/repository/init/base');
const { initRepo } = require('../../../../lib/workers/repository/init'); const { initRepo } = require('../../../../lib/workers/repository/init');
describe('workers/repository/init', () => { describe('workers/repository/init', () => {
describe('initRepo', () => { describe('initRepo', () => {
it('runs', async () => { it('runs', async () => {
base.checkBaseBranch.mockReturnValue({});
await initRepo({}, null); await initRepo({}, null);
}); });
}); });
......
...@@ -8,7 +8,7 @@ beforeEach(() => { ...@@ -8,7 +8,7 @@ beforeEach(() => {
const { const {
detectSemanticCommits, detectSemanticCommits,
} = require('../../../../lib/workers/repository/updates/semantic'); } = require('../../../../lib/workers/repository/init/semantic');
describe('workers/repository/init/semantic', () => { describe('workers/repository/init/semantic', () => {
describe('detectSemanticCommits()', () => { describe('detectSemanticCommits()', () => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment