Skip to content

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vanGalilea committed Jan 3, 2024
1 parent 3040748 commit dccec86
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions __tests__/FlatList.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,28 @@ import React from 'react';
import {
act,
cleanup,
fireEvent,
// fireEvent,
render,
screen,
waitForElementToBeRemoved,
} from '@testing-library/react-native';
import SectionList from '../src/components/FlatList';

const SCREEN_SIZE = {
height: 500,
width: 300,
};
const eventData = {
nativeEvent: {
contentOffset: {
y: SCREEN_SIZE.height,
},
// Dimensions of the scrollable content
contentSize: SCREEN_SIZE,
// Dimensions of the device
layoutMeasurement: SCREEN_SIZE,
},
};
// const SCREEN_SIZE = {
// height: 500,
// width: 300,
// };
// const eventData = {
// nativeEvent: {
// contentOffset: {
// y: SCREEN_SIZE.height,
// },
// // Dimensions of the scrollable content
// contentSize: SCREEN_SIZE,
// // Dimensions of the device
// layoutMeasurement: SCREEN_SIZE,
// },
// };

afterEach(cleanup);
jest.useFakeTimers();
Expand Down

0 comments on commit dccec86

Please sign in to comment.