From 13506d50228a4dcfbf5fd952ca3a80e8e66c4f96 Mon Sep 17 00:00:00 2001 From: Dede Hamzah Date: Tue, 12 Jul 2022 09:02:40 +0700 Subject: [PATCH] Revert throw message and use .toThrow Signed-off-by: Dede Hamzah --- .../catalog-backend/src/service/DefaultLocationService.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/catalog-backend/src/service/DefaultLocationService.test.ts b/plugins/catalog-backend/src/service/DefaultLocationService.test.ts index debf2e4b2f..23eea88b9a 100644 --- a/plugins/catalog-backend/src/service/DefaultLocationService.test.ts +++ b/plugins/catalog-backend/src/service/DefaultLocationService.test.ts @@ -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 () => {