update test url

Signed-off-by: Marc Bruins <marc@marcbruins.nl>
This commit is contained in:
Marc Bruins
2023-01-26 20:22:52 +01:00
parent f9f81aaf58
commit 2ad2119e44
@@ -29,7 +29,7 @@ describe('azure', () => {
server.use(
rest.post(
`https://almsearch.dev.azure.com/shopify/engineering/_apis/search/codesearchresults`,
`https://almsearch.dev.azure.com/shopify/_apis/search/codesearchresults`,
(req, res, ctx) => {
expect(req.headers.get('Authorization')).toBe('Basic OkFCQw==');
expect(req.body).toEqual({
@@ -83,7 +83,7 @@ describe('azure', () => {
server.use(
rest.post(
`https://almsearch.dev.azure.com/shopify/engineering/_apis/search/codesearchresults`,
`https://almsearch.dev.azure.com/shopify/_apis/search/codesearchresults`,
(req, res, ctx) => {
expect(req.headers.get('Authorization')).toBe('Basic OkFCQw==');
expect(req.body).toEqual({
@@ -126,7 +126,7 @@ describe('azure', () => {
server.use(
rest.post(
`https://almsearch.dev.azure.com/shopify/engineering/_apis/search/codesearchresults`,
`https://almsearch.dev.azure.com/shopify/_apis/search/codesearchresults`,
(req, res, ctx) => {
expect(req.headers.get('Authorization')).toBe('Basic OkFCQw==');
expect(req.body).toEqual({
@@ -170,7 +170,7 @@ describe('azure', () => {
server.use(
rest.post(
`https://azuredevops.mycompany.com/shopify/engineering/_apis/search/codesearchresults`,
`https://azuredevops.mycompany.com/shopify/_apis/search/codesearchresults`,
(req, res, ctx) => {
expect(req.headers.get('Authorization')).toBe('Basic OkFCQw==');
expect(req.body).toEqual({
@@ -204,19 +204,19 @@ describe('azure', () => {
name: 'backstage',
},
project: {
name: '*',
name: 'engineering',
},
}));
};
server.use(
rest.post(
`https://almsearch.dev.azure.com/shopify/engineering/_apis/search/codesearchresults`,
`https://almsearch.dev.azure.com/shopify/_apis/search/codesearchresults`,
(req, res, ctx) => {
expect(req.headers.get('Authorization')).toBe('Basic OkFCQw==');
expect(req.body).toMatchObject({
searchText:
'proj:engineering path:/catalog-info.yaml repo:backstage',
'path:/catalog-info.yaml repo:backstage proj:engineering',
$top: 1000,
});