Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
docs: improve api documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
clebert committed Apr 3, 2017
1 parent e912a07 commit 4560cac
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -893,12 +893,18 @@ Type definition:

- **`sendKeys(...keys: string[]): Action`**

Example [TAP][28] output: `TODO`
Example [TAP][28] output: `ok 1 - send keys [ 'f', 'o', 'o' ] to element '#bar' (attempt 1 of 5)`

Example usage:

```ts
TODO
const {defineElement, test} = require('cybernaut');

test('foo', async t => {
const bar = defineElement('#bar');

await t.perform(bar.sendKeys('f', 'o', 'o'));
});
```

#### [`submitForm`](#api)
Expand Down

0 comments on commit 4560cac

Please sign in to comment.