Skip to content

Commit d431b78

Browse files
committed
realmReducer tests [nfc]: Fix unintentionally ignored formatting errors
These indentation errors were caused by too-broad prettier-ignores. We'll remove those soon. For now, fix the things that we didn't even mean to tell Prettier to ignore.
1 parent 70cf9b4 commit d431b78

File tree

1 file changed

+43
-43
lines changed

1 file changed

+43
-43
lines changed

src/realm/__tests__/realmReducer-test.js

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -291,26 +291,26 @@ describe('realmReducer', () => {
291291
(initialStateValue, eventValue) => {
292292
/* prettier-ignore */ // (wants to wrap the name weirdly)
293293
test(`${initialStateValue?.toString() ?? '[nullish]'}${eventValue?.toString() ?? '[nullish]'}`, () => {
294-
const initialState = { ...eg.plusReduxState.realm };
295-
// $FlowFixMe[prop-missing]
296-
// $FlowFixMe[class-object-subtyping]
297-
/* $FlowFixMe[incompatible-type]: Trust that the caller passed the
298-
right kind of value for its chosen key. */
299-
initialState[statePropertyName] = initialStateValue;
300-
301-
const expectedState = { ...initialState };
302-
// $FlowFixMe[prop-missing]
303-
/* $FlowFixMe[incompatible-type]: Trust that the caller passed the
304-
right kind of value for its chosen key. */
305-
expectedState[statePropertyName] = eventValue;
306-
307-
expect(
308-
realmReducer(initialState, {
309-
type: EVENT,
310-
event: { ...eventCommon, property: eventPropertyName, value: eventValue },
311-
}),
312-
).toEqual(expectedState);
313-
});
294+
const initialState = { ...eg.plusReduxState.realm };
295+
// $FlowFixMe[prop-missing]
296+
// $FlowFixMe[class-object-subtyping]
297+
/* $FlowFixMe[incompatible-type]: Trust that the caller passed the
298+
right kind of value for its chosen key. */
299+
initialState[statePropertyName] = initialStateValue;
300+
301+
const expectedState = { ...initialState };
302+
// $FlowFixMe[prop-missing]
303+
/* $FlowFixMe[incompatible-type]: Trust that the caller passed the
304+
right kind of value for its chosen key. */
305+
expectedState[statePropertyName] = eventValue;
306+
307+
expect(
308+
realmReducer(initialState, {
309+
type: EVENT,
310+
event: { ...eventCommon, property: eventPropertyName, value: eventValue },
311+
}),
312+
).toEqual(expectedState);
313+
});
314314
};
315315

316316
describe('twentyFourHourTime / twenty_four_hour_time', () => {
@@ -333,29 +333,29 @@ describe('realmReducer', () => {
333333
(initialStateValue, eventValue) => {
334334
/* prettier-ignore */ // (wants to wrap the name weirdly)
335335
test(`${initialStateValue?.toString() ?? '[nullish]'}${eventValue?.toString() ?? '[nullish]'}`, () => {
336-
const initialState = { ...eg.plusReduxState.realm };
337-
// $FlowFixMe[prop-missing]
338-
// $FlowFixMe[class-object-subtyping]
339-
/* $FlowFixMe[incompatible-type]: Trust that the caller passed the
340-
right kind of value for its chosen key. */
341-
initialState[statePropertyName] = initialStateValue;
342-
343-
const expectedState = { ...initialState };
344-
/* $FlowFixMe[incompatible-type]: Trust that the caller passed the
345-
right kind of value for its chosen key. */
346-
expectedState[statePropertyName] = eventValue;
347-
348-
expect(
349-
realmReducer(initialState, {
350-
type: EVENT,
351-
event: {
352-
...eventCommon,
353-
// $FlowFixMe[invalid-computed-prop]
354-
data: { [eventPropertyName]: eventValue },
355-
},
356-
}),
357-
).toEqual(expectedState);
358-
});
336+
const initialState = { ...eg.plusReduxState.realm };
337+
// $FlowFixMe[prop-missing]
338+
// $FlowFixMe[class-object-subtyping]
339+
/* $FlowFixMe[incompatible-type]: Trust that the caller passed the
340+
right kind of value for its chosen key. */
341+
initialState[statePropertyName] = initialStateValue;
342+
343+
const expectedState = { ...initialState };
344+
/* $FlowFixMe[incompatible-type]: Trust that the caller passed the
345+
right kind of value for its chosen key. */
346+
expectedState[statePropertyName] = eventValue;
347+
348+
expect(
349+
realmReducer(initialState, {
350+
type: EVENT,
351+
event: {
352+
...eventCommon,
353+
// $FlowFixMe[invalid-computed-prop]
354+
data: { [eventPropertyName]: eventValue },
355+
},
356+
}),
357+
).toEqual(expectedState);
358+
});
359359
};
360360

361361
describe('name / name', () => {

0 commit comments

Comments
 (0)