Skip to content

Commit 2df4995

Browse files
committed
fix: update expected string in test
Signed-off-by: Diana Janickova <djanicko@redhat.com>
1 parent cbd206f commit 2df4995

File tree

1 file changed

+3
-1
lines changed
  • workspaces/scorecard/plugins/scorecard-backend/src/service

1 file changed

+3
-1
lines changed

workspaces/scorecard/plugins/scorecard-backend/src/service/router.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,9 @@ describe('createRouter', () => {
605605

606606
expect(result.statusCode).toBe(404);
607607
expect(result.body.error.name).toBe('NotFoundError');
608-
expect(result.body.error.message).toContain('Metric provider with ID');
608+
expect(result.body.error.message).toContain(
609+
'No metric provider registered',
610+
);
609611
});
610612

611613
it('should return aggregated metrics for a specific metric', async () => {

0 commit comments

Comments
 (0)