mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
10 lines
262 B
TypeScript
10 lines
262 B
TypeScript
/** @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);
|
|
});
|
|
});
|