From 1ee7b9192da464a927c50fa58faa5b6ca680362e Mon Sep 17 00:00:00 2001 From: JeroenVinke Date: Fri, 25 Aug 2017 10:21:46 +0200 Subject: [PATCH] fix(protractor): typescript errors when not using jest typings --- lib/resources/test/webpack/babel/e2e/demo.e2e.js | 4 ++-- lib/resources/test/webpack/typescript/e2e/demo.e2e.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/resources/test/webpack/babel/e2e/demo.e2e.js b/lib/resources/test/webpack/babel/e2e/demo.e2e.js index 99e34069e..f2055dfdf 100644 --- a/lib/resources/test/webpack/babel/e2e/demo.e2e.js +++ b/lib/resources/test/webpack/babel/e2e/demo.e2e.js @@ -14,10 +14,10 @@ describe('aurelia skeleton app', function() { }); it('should load the page and display the initial page title', async () => { - await expect(poSkeleton.getCurrentPageTitle()).toBe('Aurelia Navigation Skeleton'); + await expect(await poSkeleton.getCurrentPageTitle()).toBe('Aurelia Navigation Skeleton'); }); it('should display greeting', async () => { - await expect(poWelcome.getGreeting()).toBe('Hello World!'); + await expect(await poWelcome.getGreeting()).toBe('Hello World!'); }); }); diff --git a/lib/resources/test/webpack/typescript/e2e/demo.e2e.ts b/lib/resources/test/webpack/typescript/e2e/demo.e2e.ts index 2fc9700f6..499e2d15b 100644 --- a/lib/resources/test/webpack/typescript/e2e/demo.e2e.ts +++ b/lib/resources/test/webpack/typescript/e2e/demo.e2e.ts @@ -15,10 +15,10 @@ describe('aurelia skeleton app', function() { }); it('should load the page and display the initial page title', async () => { - await expect(poSkeleton.getCurrentPageTitle()).toBe('Aurelia Navigation Skeleton'); + await expect(await poSkeleton.getCurrentPageTitle()).toBe('Aurelia Navigation Skeleton'); }); it('should display greeting', async () => { - await expect(poWelcome.getGreeting()).toBe('Hello World!'); + await expect(await poWelcome.getGreeting()).toBe('Hello World!'); }); });