Fix router tests

This commit is contained in:
Johan Haals
2021-01-28 16:01:23 +01:00
parent 359ebd6814
commit ea890cde8d
@@ -23,6 +23,8 @@ jest.doMock('fs-extra', () => ({
F_OK: 0,
W_OK: 1,
},
mkdir: jest.fn(),
remove: jest.fn(),
}));
import { getVoidLogger } from '@backstage/backend-common';
@@ -116,9 +118,10 @@ describe('createRouter - working directory', () => {
},
});
expect(mockPrepare).toBeCalledWith(expect.anything(), {
expect(mockPrepare).toBeCalledWith({
logger: expect.anything(),
workingDirectory: '/path',
workspacePath: expect.stringContaining('path'),
url: expect.anything(),
});
});
@@ -143,8 +146,10 @@ describe('createRouter - working directory', () => {
},
});
expect(mockPrepare).toBeCalledWith(expect.anything(), {
expect(mockPrepare).toBeCalledWith({
logger: expect.anything(),
workspacePath: expect.anything(),
url: expect.anything(),
});
});
});