Skip to content

Commit 8e7bf3a

Browse files
committed
fix test
1 parent 0efab38 commit 8e7bf3a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

test/02-listeners-test.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,9 @@ describe("IAS", function () {
179179
// scroll to page 3
180180
scrollDown().then(function() {
181181
wait(1500).then(function() {
182-
expect(spy1).not.toHaveBeenCalled();
182+
expect(spy1).toHaveBeenCalledOnce();
183183

184-
// now on the final page, scroll down, and expect to have been called
185-
scrollDown().then(function() {
186-
wait(1500).then(function() {
187-
expect(spy1).toHaveBeenCalledOnce();
188-
189-
deferred.resolve();
190-
});
191-
});
184+
deferred.resolve();
192185
});
193186
});
194187
});

0 commit comments

Comments
 (0)