scaffolder-backend: fix gerrit publish test on windows

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2022-07-13 11:16:30 +02:00
parent 65dc489881
commit 02842ba0fd
@@ -16,6 +16,7 @@
jest.mock('../helpers');
import path from 'path';
import { createPublishGerritAction } from './gerrit';
import { rest } from 'msw';
import { setupServer } from 'msw/node';
@@ -169,7 +170,7 @@ describe('publish:gerrit', () => {
});
expect(initRepoAndPush).toHaveBeenCalledWith({
dir: `${mockContext.workspacePath}/repository/`,
dir: `${mockContext.workspacePath}${path.sep}repository${path.sep}`,
remoteUrl: 'https://gerrithost.org/a/repo',
defaultBranch: 'master',
auth: { username: 'gerrituser', password: 'usertoken' },