Skip to content

Commit

Permalink
docs: fix grammar in dom-events.md (#1081)
Browse files Browse the repository at this point in the history
  • Loading branch information
HusamElbashir authored and eddyerburgh committed Dec 28, 2018
1 parent 3ce2950 commit 098876e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guides/dom-events.md
Expand Up @@ -2,7 +2,7 @@

### Trigger events

The `Wrapper` expose a `trigger` method. It can be used to trigger DOM events.
The `Wrapper` exposes a `trigger` method. It can be used to trigger DOM events.

```js
const wrapper = mount(MyButton)
Expand Down Expand Up @@ -158,13 +158,13 @@ describe('Key event tests', () => {
expect(wrapper.vm.quantity).toBe(0)
})

it('Cursor up sets quantity to 1', () => {
it('Up arrow key increments quantity by 1', () => {
const wrapper = mount(QuantityComponent)
wrapper.trigger('keydown.up')
expect(wrapper.vm.quantity).toBe(1)
})

it('Cursor down reduce quantity by 1', () => {
it('Down arrow key decrements quantity by 1', () => {
const wrapper = mount(QuantityComponent)
wrapper.vm.quantity = 5
wrapper.trigger('keydown.down')
Expand Down

0 comments on commit 098876e

Please sign in to comment.