Skip to content

Commit 8bf28b0

Browse files
committed
refactor: test suites
Signed-off-by: Adam Setch <[email protected]>
1 parent 8bcf07d commit 8bf28b0

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/renderer/utils/notifications/handlers/index.test.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,13 @@ describe('renderer/utils/notifications/handlers/index.ts', () => {
3131
['WorkflowRun', workflowRunHandler],
3232
];
3333

34-
it.each(cases)(
35-
'returns expected handler instance for %s',
36-
(type, expected) => {
37-
const notification = createPartialMockNotification({ type });
38-
const handler = createNotificationHandler(notification);
39-
expect(handler).toBe(expected);
40-
},
41-
);
34+
it.each(
35+
cases,
36+
)('returns expected handler instance for %s', (type, expected) => {
37+
const notification = createPartialMockNotification({ type });
38+
const handler = createNotificationHandler(notification);
39+
expect(handler).toBe(expected);
40+
});
4241

4342
it('falls back to default handler for unknown type', () => {
4443
const notification = createPartialMockNotification({

0 commit comments

Comments
 (0)