Skip to content

Commit

Permalink
remove willUnmount test
Browse files Browse the repository at this point in the history
  • Loading branch information
jljsj33 committed Jul 25, 2016
1 parent d18fc89 commit 184bde0
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions tests/index.js
Expand Up @@ -351,23 +351,4 @@ describe('rc-queue-anim', () => {
}, 17);
}, 1000);
});

it('will un mount', (done) => {
const instance = createQueueAnimInstance({
animConfig(e) {
if (e.index === 1) {
return { top: [100, 0] };
}
return { left: [100, 0] };
},
});
setTimeout(() => {
let children = TestUtils.scryRenderedDOMComponentsWithTag(instance, 'div');
expect(children.length).to.be(4);
instance.unMountQueue();
children = TestUtils.scryRenderedDOMComponentsWithTag(instance, 'div');
expect(children.length).to.be(0);
done();
}, 100);
});
});

0 comments on commit 184bde0

Please sign in to comment.