ant-design/components/_util/__tests__/getScrollNode.test.ts

12 lines
266 B
TypeScript
Raw Normal View History

/**
* @jest-environment node
*/
import getScroll from '../getScroll';
describe('getScroll node', () => {
it('getScroll return 0 in node environment', async () => {
expect(getScroll(null, true)).toBe(0);
expect(getScroll(null, false)).toBe(0);
});
});