diff --git a/components/affix/__tests__/Affix.test.js b/components/affix/__tests__/Affix.test.js index ac642dda87f0ea5e5d8b538d676a972a92b4e7be..6cf8da688dda3598e06a3bb72b6e0a61f456d976 100644 --- a/components/affix/__tests__/Affix.test.js +++ b/components/affix/__tests__/Affix.test.js @@ -48,7 +48,7 @@ describe('Affix Render', () => { }; const originGetBoundingClientRect = HTMLElement.prototype.getBoundingClientRect; - HTMLElement.prototype.getBoundingClientRect = function getRect() { + HTMLElement.prototype.getBoundingClientRect = function getBoundingClientRect() { return ( classRect[this.className] || { top: 0,