[#10582] 👌 Pass prettier
Signed-off-by: LvffY <louberger@hotmail.fr> (cherry picked from commit 90efbd7f197c999f7a067bb813ff5b0232307b2f)
This commit is contained in:
@@ -333,7 +333,8 @@ describe('TodoReaderService', () => {
|
||||
metadata: {
|
||||
...mockEntity.metadata,
|
||||
annotations: {
|
||||
['backstage.io/managed-by-location']: 'file:../managed-by-location.yaml',
|
||||
['backstage.io/managed-by-location']:
|
||||
'file:../managed-by-location.yaml',
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
@@ -71,12 +71,12 @@ export class TodoReaderService implements TodoService {
|
||||
`Entity not found, ${stringifyEntityRef(req.entity)}`,
|
||||
);
|
||||
}
|
||||
const entitySourceLocation = getEntitySourceLocation(entity)
|
||||
const entitySourceLocation = getEntitySourceLocation(entity);
|
||||
if (entitySourceLocation.type !== 'url') {
|
||||
throw new InputError(
|
||||
`Invalid entity location type for ${stringifyEntityRef(
|
||||
entity,
|
||||
)}, got '${entitySourceLocation.type}' for location ${entitySourceLocation.target}`,
|
||||
`Invalid entity location type for ${stringifyEntityRef(entity)}, got '${
|
||||
entitySourceLocation.type
|
||||
}' for location ${entitySourceLocation.target}`,
|
||||
);
|
||||
}
|
||||
const url = entitySourceLocation.target;
|
||||
|
||||
Reference in New Issue
Block a user