diff --git a/ponyracer/e2e/app.e2e-spec.ts b/ponyracer/e2e/app.e2e-spec.ts index 98c1d470a..605376d44 100644 --- a/ponyracer/e2e/app.e2e-spec.ts +++ b/ponyracer/e2e/app.e2e-spec.ts @@ -7,10 +7,8 @@ describe('ponyracer App', () => { page = new PonyracerPage(); }); - it('should display welcome message', done => { + it('should display welcome message', () => { page.navigateTo(); - page.getParagraphText() - .then(msg => expect(msg).toEqual('Welcome to app!!')) - .then(done, done.fail); + expect(page.getParagraphText()).toEqual('Welcome to app!!'); }); }); diff --git a/ponyracer/package.json b/ponyracer/package.json index b97a893f1..e87d742fc 100644 --- a/ponyracer/package.json +++ b/ponyracer/package.json @@ -26,7 +26,7 @@ "zone.js": "^0.8.4" }, "devDependencies": { - "@angular/cli": "1.2.0-beta.0", + "@angular/cli": "1.2.0-beta.1", "@angular/compiler-cli": "^4.0.0", "@angular/language-service": "^4.0.0", "@types/jasmine": "2.5.45", diff --git a/ponyracer/src/polyfills.ts b/ponyracer/src/polyfills.ts index fd01cc9f1..7831e97b7 100644 --- a/ponyracer/src/polyfills.ts +++ b/ponyracer/src/polyfills.ts @@ -37,16 +37,15 @@ /** IE10 and IE11 requires the following for NgClass support on SVG elements */ // import 'classlist.js'; // Run `npm install --save classlist.js`. -/** IE10 and IE11 requires the following to support `@angular/animation`. */ -// import 'web-animations-js'; // Run `npm install --save web-animations-js`. - - /** Evergreen browsers require these. **/ import 'core-js/es6/reflect'; import 'core-js/es7/reflect'; -/** ALL Firefox browsers require the following to support `@angular/animation`. **/ +/** + * Required to support Web Animations `@angular/animation`. + * Needed for: All but Chrome, Firefox and Opera. http://caniuse.com/#feat=web-animation + **/ // import 'web-animations-js'; // Run `npm install --save web-animations-js`.