From d8cd4526a4f8f9190089a887bf3c63a3e9827881 Mon Sep 17 00:00:00 2001 From: Andre Christoga Pramaditya Date: Mon, 29 Aug 2022 22:44:21 +0700 Subject: [PATCH] feat(jest): 100% coverage for Iridium/notifications/types --- .../__snapshots__/types.test.ts.snap | 15 +++++++++++++++ libraries/Iridium/notifications/types.test.ts | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 libraries/Iridium/notifications/__snapshots__/types.test.ts.snap create mode 100644 libraries/Iridium/notifications/types.test.ts diff --git a/libraries/Iridium/notifications/__snapshots__/types.test.ts.snap b/libraries/Iridium/notifications/__snapshots__/types.test.ts.snap new file mode 100644 index 0000000000..3d025dedc5 --- /dev/null +++ b/libraries/Iridium/notifications/__snapshots__/types.test.ts.snap @@ -0,0 +1,15 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`test constants of Iridium/notifications/types should return correct value for EmptyNotification 1`] = ` +Object { + "at": 0, + "description": "", + "fromAddress": "", + "fromName": "", + "id": "", + "image": "", + "seen": false, + "title": "", + "type": "Seen", +} +`; diff --git a/libraries/Iridium/notifications/types.test.ts b/libraries/Iridium/notifications/types.test.ts new file mode 100644 index 0000000000..19ef21b9e2 --- /dev/null +++ b/libraries/Iridium/notifications/types.test.ts @@ -0,0 +1,7 @@ +import { EmptyNotification } from '~/libraries/Iridium/notifications/types' + +describe('test constants of Iridium/notifications/types', () => { + it('should return correct value for EmptyNotification', () => { + expect(EmptyNotification).toMatchSnapshot() + }) +})