Revert throw message and use .toThrow

Signed-off-by: Dede Hamzah <dehamzah@gmail.com>
This commit is contained in:
Dede Hamzah
2022-07-12 09:02:40 +07:00
parent 5f6b847c15
commit 13506d5022
@@ -197,7 +197,7 @@ describe('DefaultLocationServiceTest', () => {
{ type: 'url', target: 'https://backstage.io/catalog-info.yaml' },
true,
),
).rejects.toThrow(InputError);
).rejects.toThrow('Duplicate nested entity: location:default/foo');
});
it('should return exists false when the location does not exist beforehand', async () => {