Skip to content

Commit 4474ca8

Browse files
Update test/jasmine/tests/animate_test.js
Co-authored-by: Alex Johnson <alex@plot.ly>
1 parent ec7ff52 commit 4474ca8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/jasmine/tests/animate_test.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -732,11 +732,9 @@ describe('Animate expandObjectPaths do not pollute prototype', function() {
732732
traces: [0],
733733
layout: {'__proto__.polluted': true}
734734
});
735-
}).then(function() {
736-
setTimeout(function() {
737-
var a = {};
738-
expect(a.polluted).toBeUndefined();
739-
}, 100);
735+
}).then(delay(100)).then(function() {
736+
var a = {};
737+
expect(a.polluted).toBeUndefined();
740738
}).then(done, done.fail);
741739
});
742740

0 commit comments

Comments
 (0)