Skip to content

Commit 184bde0

Browse files
committed
remove willUnmount test
1 parent d18fc89 commit 184bde0

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tests/index.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -351,23 +351,4 @@ describe('rc-queue-anim', () => {
351351
}, 17);
352352
}, 1000);
353353
});
354-
355-
it('will un mount', (done) => {
356-
const instance = createQueueAnimInstance({
357-
animConfig(e) {
358-
if (e.index === 1) {
359-
return { top: [100, 0] };
360-
}
361-
return { left: [100, 0] };
362-
},
363-
});
364-
setTimeout(() => {
365-
let children = TestUtils.scryRenderedDOMComponentsWithTag(instance, 'div');
366-
expect(children.length).to.be(4);
367-
instance.unMountQueue();
368-
children = TestUtils.scryRenderedDOMComponentsWithTag(instance, 'div');
369-
expect(children.length).to.be(0);
370-
done();
371-
}, 100);
372-
});
373354
});

0 commit comments

Comments
 (0)