From b3d1447ea5a00a5d1a1c3496f40a8a4972db2c58 Mon Sep 17 00:00:00 2001 From: Emmanouil Konstantinidis Date: Thu, 20 Feb 2020 21:32:36 +0000 Subject: [PATCH 1/2] Don't codesign for PRs --- .github/workflows/build-app.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index cd6f9cab4..0263c6107 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -33,7 +33,7 @@ jobs: env: CSC_LINK: ${{ secrets.mac_certs }} CSC_KEY_PASSWORD: ${{ secrets.mac_certs_password }} - run: yarn make:macos + run: yarn make:macos -c.mac.identity=null - name: Clean up builds run: rm -rfv dist/mac From c7468ad5759d129c71ab80157ce6436c688007f8 Mon Sep 17 00:00:00 2001 From: Emmanouil Konstantinidis Date: Thu, 20 Feb 2020 21:47:11 +0000 Subject: [PATCH 2/2] Tests: Mock date for snapshot --- src/js/components/__snapshots__/notification.test.tsx.snap | 2 +- src/js/components/notification.test.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/components/__snapshots__/notification.test.tsx.snap b/src/js/components/__snapshots__/notification.test.tsx.snap index cdc23581b..e87bc7be5 100644 --- a/src/js/components/__snapshots__/notification.test.tsx.snap +++ b/src/js/components/__snapshots__/notification.test.tsx.snap @@ -50,7 +50,7 @@ exports[`components/notification.js should render itself & its children 1`] = ` - Updated - over 2 years ago + in over 3 years
{ }); it('should render itself & its children', async () => { + (global as any).Date.now = jest.fn(() => new Date('2014')); + const props = { markNotification: jest.fn(), markOnClick: false,