@@ -301,7 +301,7 @@ describe('TodoReaderService', () => {
|
||||
await expect(service.listTodos({ entity: entityName })).rejects.toEqual(
|
||||
expect.objectContaining({
|
||||
name: 'NotFoundError',
|
||||
message: 'Entity not found, Component:default/my-component',
|
||||
message: 'Entity not found, component:default/my-component',
|
||||
}),
|
||||
);
|
||||
expect(catalogClient.getEntityByName).toHaveBeenCalledWith(entityName, {
|
||||
@@ -321,7 +321,7 @@ describe('TodoReaderService', () => {
|
||||
expect.objectContaining({
|
||||
name: 'InputError',
|
||||
message:
|
||||
'No entity location annotation found for Component:my-component',
|
||||
'No entity location annotation found for component:default/my-component',
|
||||
}),
|
||||
);
|
||||
});
|
||||
@@ -342,7 +342,7 @@ describe('TodoReaderService', () => {
|
||||
await expect(service.listTodos({ entity: entityName })).rejects.toEqual(
|
||||
expect.objectContaining({
|
||||
name: 'InputError',
|
||||
message: `Invalid entity location type for Component:my-component, got 'file'`,
|
||||
message: `Invalid entity location type for component:default/my-component, got 'file'`,
|
||||
}),
|
||||
);
|
||||
});
|
||||
@@ -363,7 +363,7 @@ describe('TodoReaderService', () => {
|
||||
await expect(service.listTodos({ entity: entityName })).rejects.toEqual(
|
||||
expect.objectContaining({
|
||||
name: 'InputError',
|
||||
message: `Invalid entity source location type for Component:my-component, got 'file'`,
|
||||
message: `Invalid entity source location type for component:default/my-component, got 'file'`,
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user