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
This commit is contained in:
Michel Weststrate
2021-07-01 04:20:07 -07:00
committed by Facebook GitHub Bot
parent 56f502af07
commit ac6dc4694e

View File

@@ -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([