Skip to content

Commit

Permalink
fix delay in test
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Aug 11, 2023
1 parent cf5c623 commit e1e3175
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/jasmine/tests/animate_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -747,11 +747,9 @@ describe('Animate expandObjectPaths do not pollute prototype', function() {
data: [{y: [2, 3, 1], '__proto__.polluted': true}],
traces: [0]
});
}).then(function() {
setTimeout(function() {
var a = {};
expect(a.polluted).toBeUndefined();
}, 100);
}).then(delay(100)).then(function() {
var a = {};
expect(a.polluted).toBeUndefined();
}).then(done, done.fail);
});
});
Expand Down

0 comments on commit e1e3175

Please sign in to comment.