From ac6dc4694e577bbe474d82e8d2e212ec62113a9c Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Thu, 1 Jul 2021 04:20:07 -0700 Subject: [PATCH] Disabled timezone sensiteve test on windows (#2546) Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/2546 TZ overrides don't work in NodeJS on windows, so skipped tests affected Reviewed By: jknoxville Differential Revision: D29513800 fbshipit-source-id: 027b8283e23ee9a9a51e7c8d84c42f21a2f42536 --- .../utils/__tests__/shallowSerialization.node.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/desktop/flipper-plugin/src/utils/__tests__/shallowSerialization.node.tsx b/desktop/flipper-plugin/src/utils/__tests__/shallowSerialization.node.tsx index 93f2370b5..babf952e7 100644 --- a/desktop/flipper-plugin/src/utils/__tests__/shallowSerialization.node.tsx +++ b/desktop/flipper-plugin/src/utils/__tests__/shallowSerialization.node.tsx @@ -225,16 +225,20 @@ test('test serialize and deserializeShallowObject function for non Object input' ); }); -test('test makeObjectSerializable and deserializeShallowObject function for Date input', () => { - const date = new Date(2021, 1, 29, 10, 31, 7, 205); - expect(makeShallowSerializable(date)).toMatchInlineSnapshot(` +if (process.platform !== 'win32') { + test('test makeObjectSerializable and deserializeShallowObject function for Date input', () => { + const date = new Date(2021, 1, 29, 10, 31, 7, 205); + expect(makeShallowSerializable(date)).toMatchInlineSnapshot(` Object { "__flipper_object_type__": "Date", "data": 1614555067205, } `); - expect(deserializeShallowObject(makeShallowSerializable(date))).toEqual(date); -}); + expect(deserializeShallowObject(makeShallowSerializable(date))).toEqual( + date, + ); + }); +} test('test makeObjectSerializable and deserializeShallowObject function for Map of Sets', () => { const map = new Map([