Skip to content

Commit 3b5f324

Browse files
committed
Really properly clean oneself
1 parent 4a324b1 commit 3b5f324

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: test/unit/views/scrollViewNative.unit.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('Scroll View', function() {
2222
expect(document.addEventListener).toHaveBeenCalled();
2323
expect(document.addEventListener.mostRecentCall.args[0]).toBe('resetScrollView');
2424
expect(sc.addEventListener).toHaveBeenCalled();
25-
expect(sc.addEventListener.callCount).toBe(2);
25+
expect(sc.addEventListener.callCount).toBe(4);
2626
expect(sc.addEventListener.mostRecentCall.args[0]).toBe('scrollChildIntoView');
2727
});
2828

@@ -34,7 +34,7 @@ describe('Scroll View', function() {
3434
sv.__cleanup();
3535

3636
expect(sc.removeEventListener).toHaveBeenCalled();
37-
expect(sc.removeEventListener.callCount).toBe(4);
37+
expect(sc.removeEventListener.callCount).toBe(6);
3838
expect(sc.removeEventListener.mostRecentCall.args[0]).toBe('resetScrollView');
3939
});
4040

0 commit comments

Comments
 (0)