ant-design/components/_util/__tests__/getScroll.test.js
偏右 aca2656721
fix: ⬆️ BackTop not working in iframe (#22788)
* 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
2020-04-01 17:38:21 +08:00

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);
});
});