chore: fixing tests

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-06-25 10:31:38 +02:00
parent b5deed0c1b
commit d14795bd05
@@ -27,11 +27,9 @@ import { act } from 'react-dom/test-utils';
describe('BitbucketRepoPicker', () => {
const scaffolderApiMock: Partial<ScaffolderApi> = {
autocomplete: jest
.fn()
.mockImplementation((_token, _provider, resource) => [
`${resource}_example`,
]),
autocomplete: jest.fn().mockImplementation(opts => ({
results: [{ title: `${opts.resource}_example` }],
})),
};
it('renders a select if there is a list of allowed owners', async () => {