Skip to content

Commit

Permalink
typo: capturedcapture
Browse files Browse the repository at this point in the history
  • Loading branch information
buschtoens committed Apr 13, 2019
1 parent 28583b9 commit 956af08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/modifiers/on.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { DEBUG } from '@glimmer/env';
const assertValidEventOptions =
DEBUG &&
(() => {
const ALLOWED_EVENT_OPTIONS = ['captured', 'once', 'passive'];
const ALLOWED_EVENT_OPTIONS = ['capture', 'once', 'passive'];
const joinOptions = opts => opts.map(o => `'${o}'`).join(', ');

return function(eventOptions, eventName) {
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/modifiers/on-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module('Integration | Modifier | on', function(hooks) {
setupOnerror(function(error) {
assert.strictEqual(
error.message,
"Assertion Failed: ember-on-modifier: Provided invalid event options ('nope', 'foo') to 'click' event listener. Only these options are valid: 'captured', 'once', 'passive'",
"Assertion Failed: ember-on-modifier: Provided invalid event options ('nope', 'foo') to 'click' event listener. Only these options are valid: 'capture', 'once', 'passive'",
'error is thrown'
);
});
Expand Down

0 comments on commit 956af08

Please sign in to comment.