From 2fac8f4363507c67512c2d9e2385259a7669d4f2 Mon Sep 17 00:00:00 2001 From: Jason Chen Date: Tue, 20 Jun 2017 15:35:50 -0700 Subject: [PATCH] fix tests --- test/unit/blots/scroll.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/blots/scroll.js b/test/unit/blots/scroll.js index 7ad14e40d1..f4bda62de1 100644 --- a/test/unit/blots/scroll.js +++ b/test/unit/blots/scroll.js @@ -15,7 +15,7 @@ describe('Scroll', function() { let scroll = this.initialize(Scroll, '

Hello World!

'); spyOn(scroll.emitter, 'emit').and.callThrough(); scroll.insertAt(5, '!'); - expect(scroll.emitter.emit).toHaveBeenCalledWith(Emitter.events.SCROLL_OPTIMIZE, jasmine.any(Array)); + expect(scroll.emitter.emit).toHaveBeenCalledWith(Emitter.events.SCROLL_OPTIMIZE, jasmine.any(Array), jasmine.any(Object)); }); it('user change', function(done) { @@ -23,7 +23,7 @@ describe('Scroll', function() { spyOn(scroll.emitter, 'emit').and.callThrough(); scroll.domNode.firstChild.appendChild(document.createTextNode('!')); setTimeout(function() { - expect(scroll.emitter.emit).toHaveBeenCalledWith(Emitter.events.SCROLL_OPTIMIZE, jasmine.any(Array)); + expect(scroll.emitter.emit).toHaveBeenCalledWith(Emitter.events.SCROLL_OPTIMIZE, jasmine.any(Array), jasmine.any(Object)); expect(scroll.emitter.emit).toHaveBeenCalledWith(Emitter.events.SCROLL_UPDATE, Emitter.sources.USER, jasmine.any(Array)); done(); }, 1);