Skip to content

Commit e1e3175

Browse files
committed
fix delay in test
1 parent cf5c623 commit e1e3175

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: test/jasmine/tests/animate_test.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -747,11 +747,9 @@ describe('Animate expandObjectPaths do not pollute prototype', function() {
747747
data: [{y: [2, 3, 1], '__proto__.polluted': true}],
748748
traces: [0]
749749
});
750-
}).then(function() {
751-
setTimeout(function() {
752-
var a = {};
753-
expect(a.polluted).toBeUndefined();
754-
}, 100);
750+
}).then(delay(100)).then(function() {
751+
var a = {};
752+
expect(a.polluted).toBeUndefined();
755753
}).then(done, done.fail);
756754
});
757755
});

0 commit comments

Comments
 (0)