Skip to content

Commit 238d6d6

Browse files
committed
no more need to flush the timeout in ui-scroll tests
1 parent 40fe89a commit 238d6d6

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

test/AssigningSpec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,13 @@ describe('uiScroll', function () {
4040
};
4141

4242
var executeTest = function(template, scopeSelector, scopeContainer) {
43-
inject(function($rootScope, $compile, $timeout) {
43+
inject(function($rootScope, $compile) {
4444
// build and render
4545
var templateElement = angular.element(template);
4646
var scope = $rootScope.$new();
4747
angular.element(document).find('body').append(templateElement);
4848
$compile(templateElement)(scope);
4949
scope.$apply();
50-
$timeout.flush();
5150

5251
// find adapter element and scope container
5352
var adapterContainer;

test/misc/scaffolding.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ function runTest(scrollSettings, run, options = {}) {
7171
var compile = function() {
7272
$compile(scroller)(scope);
7373
scope.$apply();
74-
$timeout.flush();
7574
};
7675

7776
if (typeof options.catch === 'function') {

0 commit comments

Comments
 (0)