fix tests

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2022-02-12 10:20:50 +01:00
parent 854ef5ddff
commit 215debc7e0
@@ -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'`,
}),
);
});