types: test cases typing

This commit is contained in:
chenjiahan
2021-02-11 13:04:00 +08:00
parent 7a5fb894d2
commit e2e0f66fe6
87 changed files with 129 additions and 121 deletions
+1 -1
View File
@@ -321,7 +321,7 @@ test('should emit scroll event when visibility changed', async () => {
observerCallback([{ intersectionRatio: 1 }]);
expect(onScroll).toHaveBeenCalledTimes(2);
wrapper.element.style.display = 'none';
wrapper.style.display = 'none';
observerCallback([{ intersectionRatio: 0 }]);
expect(onScroll).toHaveBeenCalledTimes(2);