From 156442f80df3a1d91b8dd3958871906241675c0c Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Wed, 4 Oct 2017 10:38:59 +0100 Subject: [PATCH] docs(aio): fix animations example to work with Angular v5 (#19600) PR Close #19600 --- aio/content/examples/animations/e2e-spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aio/content/examples/animations/e2e-spec.ts b/aio/content/examples/animations/e2e-spec.ts index 4fba7ec475..ec54da1fee 100644 --- a/aio/content/examples/animations/e2e-spec.ts +++ b/aio/content/examples/animations/e2e-spec.ts @@ -335,17 +335,17 @@ describe('Animation Tests', () => { }); } - function getBoundingClientWidth(el: ElementFinder): promise.Promise { + function getBoundingClientWidth(el: ElementFinder) { return browser.executeScript( 'return arguments[0].getBoundingClientRect().width', el.getWebElement() - ); + ) as PromiseLike; } - function getOffsetWidth(el: ElementFinder): promise.Promise { + function getOffsetWidth(el: ElementFinder) { return browser.executeScript( 'return arguments[0].offsetWidth', el.getWebElement() - ); + ) as PromiseLike; } });