Skip to content

Commit

Permalink
Clean up alias & getter documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Andresian committed Oct 1, 2017
1 parent 0478ba2 commit e79594e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions addon/-private/properties/alias.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const ALIASED_PROP_NOT_FOUND = 'PageObject does not contain aliased property';
* const page = create({
* submitButton: {
* scope: '.submit-button'
* }
* },
* submit: alias('submitButton.click')
* });
*
Expand All @@ -33,7 +33,7 @@ const ALIASED_PROP_NOT_FOUND = 'PageObject does not contain aliased property';
* const page = create({
* submitButton: {
* scope: '.submit-button'
* }
* },
* isSubmitButtonVisible: alias('submitButton.isVisible')
* });
*
Expand All @@ -47,7 +47,7 @@ const ALIASED_PROP_NOT_FOUND = 'PageObject does not contain aliased property';
*
* const page = create({
* form: {
* input {
* input: {
* scope: 'input'
* },
* submitButton: {
Expand All @@ -62,7 +62,6 @@ const ALIASED_PROP_NOT_FOUND = 'PageObject does not contain aliased property';
* // and causes both methods to return `page` (instead of `page.form.input`
* // and `page.form.submitButton` respectively) so that the aliased methods
* // can be chained off `page`.
*
* page
* .fillFormInput('foo')
* .submitForm();
Expand Down
2 changes: 1 addition & 1 deletion addon/-private/properties/getter.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const NOT_A_FUNCTION_ERROR = 'Argument passed to `getter` must be a function.';
* @example
*
* // <input type="text">
* // <button>Submit</button>
* // <button disabled>Submit</button>
*
* import { create } from 'ember-cli-page-object';
* import { getter } from 'ember-cli-page-object/macros';
Expand Down

0 comments on commit e79594e

Please sign in to comment.