test: fix a few more test leaks (#4508)

This commit is contained in:
Kristiyan Kostadinov
2017-05-12 23:30:35 +02:00
committed by Kara
parent 32c3ef4a69
commit bc1c2ce5f8
@@ -601,6 +601,11 @@ describe('ConnectedPositionStrategy', () => {
positionBuilder = new OverlayPositionBuilder(viewportRuler);
});
afterEach(() => {
document.body.removeChild(originElement);
document.body.removeChild(overlayContainerElement);
});
describe('in ltr', () => {
it('should use `left` when positioning an element at the start', () => {
strategy = positionBuilder.connectedTo(