diff --git a/src/utils/__snapshots__/github-api.test.ts.snap b/src/utils/__snapshots__/github-api.test.ts.snap index 327ef366d..f2aa11664 100644 --- a/src/utils/__snapshots__/github-api.test.ts.snap +++ b/src/utils/__snapshots__/github-api.test.ts.snap @@ -14,12 +14,7 @@ exports[`./utils/github-api.ts should format the notification color 6`] = `"text exports[`./utils/github-api.ts should format the notification color 7`] = `"text-green-500"`; -exports[`./utils/github-api.ts should format the notification color 8`] = ` -{ - "description": "The reason for this notification is not supported by the app.", - "type": "Unknown", -} -`; +exports[`./utils/github-api.ts should format the notification color 8`] = `"text-gray-300"`; exports[`./utils/github-api.ts should format the notification reason 1`] = ` { diff --git a/src/utils/github-api.test.ts b/src/utils/github-api.test.ts index 25ccac95c..c0b31fb4e 100644 --- a/src/utils/github-api.test.ts +++ b/src/utils/github-api.test.ts @@ -3,7 +3,7 @@ import { getNotificationTypeIcon, getNotificationTypeIconColor, } from './github-api'; -import { Reason, SubjectType } from '../typesGithub'; +import { Reason, StateType, SubjectType } from '../typesGithub'; describe('./utils/github-api.ts', () => { it('should format the notification reason', () => { @@ -75,6 +75,8 @@ describe('./utils/github-api.ts', () => { expect(getNotificationTypeIconColor('not_planned')).toMatchSnapshot(); expect(getNotificationTypeIconColor('open')).toMatchSnapshot(); expect(getNotificationTypeIconColor('reopened')).toMatchSnapshot(); - expect(formatReason('something_else_unknown' as Reason)).toMatchSnapshot(); + expect( + getNotificationTypeIconColor('something_else_unknown' as StateType), + ).toMatchSnapshot(); }); });