ant-design/components/_util/__tests__/getScrollNode.test.ts
Tom Xu 9f633bc002
chore: getScroll add more test (#24180)
* chore: getScroll add more test

* Update getScroll.test.js
2020-05-15 16:14:38 +08:00

12 lines
266 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);
});
});