test: update tests

Signed-off-by: Benjamin Janssens <benji.janssens@gmail.com>
This commit is contained in:
Benjamin Janssens
2024-06-06 14:51:04 +02:00
parent 64e9b71c63
commit 1759266332
@@ -254,7 +254,7 @@ describe('RepoUrlPicker', () => {
});
expect(mockScmAuthApi.getCredentials).toHaveBeenCalledWith({
url: 'https://github.com/backstage/repo123',
host: 'github.com',
additionalScope: {
repoWrite: true,
customScopes: {
@@ -321,7 +321,7 @@ describe('RepoUrlPicker', () => {
});
expect(mockScmAuthApi.getCredentials).toHaveBeenCalledWith({
url: 'https://gitlab.example.com/backstage/mysubgroup/repo123',
host: 'gitlab.example.com',
additionalScope: {
repoWrite: true,
},
@@ -375,7 +375,7 @@ describe('RepoUrlPicker', () => {
});
expect(mockScmAuthApi.getCredentials).toHaveBeenCalledWith({
url: 'https://server.bitbucket.org/backstage/repo123',
host: 'server.bitbucket.org',
additionalScope: {
repoWrite: true,
},