From d3fd08816205a1f55d87c0f423753c0762ab4554 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 (#19511) PR Close #19511 --- aio/content/examples/animations/e2e/app.e2e-spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aio/content/examples/animations/e2e/app.e2e-spec.ts b/aio/content/examples/animations/e2e/app.e2e-spec.ts index fc0f40f9fc..524335223d 100644 --- a/aio/content/examples/animations/e2e/app.e2e-spec.ts +++ b/aio/content/examples/animations/e2e/app.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; } });