mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-10 22:26:23 +08:00
aca2656721
* docs: 🎬 improve BackTop demo * fix Backtop not working in iframe * fix lint * fix ci * fix ci * ✅ add more test case * ✅ add more test cases * fix ci
12 lines
262 B
JavaScript
12 lines
262 B
JavaScript
/**
|
|
* @jest-environment node
|
|
*/
|
|
import getScroll from '../getScroll';
|
|
|
|
describe('getScroll', () => {
|
|
it('getScroll return 0 in node envioronment', async () => {
|
|
expect(getScroll(null, true)).toBe(0);
|
|
expect(getScroll(null, false)).toBe(0);
|
|
});
|
|
});
|