import path instead of resolve

This commit is contained in:
Johan Haals
2021-01-29 13:53:12 +01:00
parent adaba84f3f
commit 262f7cf996
@@ -21,7 +21,7 @@ jest.mock('@gitbeaker/node', () => ({
jest.mock('./helpers');
import os from 'os';
import { resolve } from 'path';
import path from 'path';
import { GitlabPublisher } from './gitlab';
import { Gitlab } from '@gitbeaker/node';
import { initRepoAndPush } from './helpers';
@@ -50,7 +50,7 @@ describe('GitLab Publisher', () => {
});
const workspacePath = os.platform() === 'win32' ? 'C:\\tmp' : '/tmp';
const resultPath = resolve(workspacePath, 'result');
const resultPath = path.resolve(workspacePath, 'result');
describe('publish: createRemoteInGitLab', () => {
it('should use gitbeaker to create a repo in a namespace if the namespace property is set', async () => {