From 51b6e870d172e2d86ea13bbf0330b646431cc498 Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Thu, 21 Jul 2016 15:50:46 +0300 Subject: [PATCH] docs(exampleTypescript): fix typos --- exampleTypescript/README.md | 6 +++--- exampleTypescript/conf.ts | 8 ++++---- exampleTypescript/confPageObjects.ts | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/exampleTypescript/README.md b/exampleTypescript/README.md index e93463f95..88e119367 100644 --- a/exampleTypescript/README.md +++ b/exampleTypescript/README.md @@ -48,7 +48,7 @@ The ambient typings are downloaded from DefinitelyTyped in the `postinstall` ste ## Protractor typings -To use Protractor types, you'll need to import `protractor/globals`. After this is imported, you should have auto completition hints when typing. +To use Protractor types, you'll need to import `protractor/globals`. After this is imported, you should have autocompletion hints when typing. ``` import {browser, element, by, By, $, $$, ExpectedConditions} from 'protractor/globals'; @@ -66,12 +66,12 @@ export let config: Config = { ## Ambient typings -Protractor also uses ambient types including jasmine and node. These are brought in via the `typings.json` file. The ambient typings files are imported from the `typings/index.d.ts` generated file and are included in the project via the tsconfig.json configuration file. +Protractor also uses ambient types including jasmine and node. These are brought in via the `typings.json` file. The ambient typings files are imported from the `typings/index.d.ts` generated file and are included in the project via the `tsconfig.json` configuration file. ## Compiling your code -To convert your typescript to javascript (transpiling), you'll use the Typescript comipler (tsc). If you install typescript globally, the command is `tsc`. If it is not installed globally, the typescript compiler can be executed with `npm run tsc`. +To convert your typescript to javascript (transpiling), you'll use the Typescript compiler (tsc). If you install typescript globally, the command is `tsc`. If it is not installed globally, the typescript compiler can be executed with `npm run tsc`. ## Running Protractor diff --git a/exampleTypescript/conf.ts b/exampleTypescript/conf.ts index 1ee7f29a8..ac4757e70 100644 --- a/exampleTypescript/conf.ts +++ b/exampleTypescript/conf.ts @@ -3,14 +3,14 @@ // information. // // Why you might want to create your config with typescript: -// edtiors like Microsoft Visual Studio Code will have autocomplete and +// Editors like Microsoft Visual Studio Code will have autocomplete and // description hints. // -// To run this example, run 'npm run tsc' to transpile the typescript to -// javascript. run with 'protractor conf.js' +// To run this example, first transpile it to javascript with `npm run tsc`, +// then run `protractor conf.js`. import {Config} from 'protractor'; -export let config: Config = { +export let config: Config = { framework: 'jasmine', capabilities: { browserName: 'chrome' diff --git a/exampleTypescript/confPageObjects.ts b/exampleTypescript/confPageObjects.ts index 37aa29f4c..8d618a286 100644 --- a/exampleTypescript/confPageObjects.ts +++ b/exampleTypescript/confPageObjects.ts @@ -3,14 +3,14 @@ // information. // // Why you might want to create your config with typescript: -// edtiors like Microsoft Visual Studio Code will have autocomplete and +// Editors like Microsoft Visual Studio Code will have autocomplete and // description hints. // -// To run this example, run 'npm run tsc' to transpile the typescript to -// javascript. run with 'protractor conf_withPageObjects.js' +// To run this example, first transpile it to javascript with `npm run tsc`, +// then run `protractor confPageObjects.js`. import {Config} from 'protractor'; -export let config: Config = { +export let config: Config = { framework: 'jasmine', capabilities: { browserName: 'chrome'