Skip to content

fix: Update links to docs #670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 29, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/test-utils/src/warn-if-no-window.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function warnIfNoWindow () {
throwError(
'window is undefined, vue-test-utils needs to be run in a browser environment.\n' +
'You can run the tests in node using jsdom + jsdom-global.\n' +
'See https://vue-test-utils.vuejs.org/en/guides/common-tips.html for more details.'
'See https://vue-test-utils.vuejs.org/guides/common-tips.html for more details.'
)
}
}
2 changes: 1 addition & 1 deletion packages/test-utils/src/wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ export default class Wrapper implements BaseWrapper {
}

if (options.target) {
throwError('you cannot set the target value of an event. See the notes section of the docs for more details—https://vue-test-utils.vuejs.org/en/api/wrapper/trigger.html')
throwError('you cannot set the target value of an event. See the notes section of the docs for more details—https://vue-test-utils.vuejs.org/api/wrapper/trigger.html')
}

// Don't fire event on a disabled element
Expand Down
2 changes: 1 addition & 1 deletion test/specs/wrapper/trigger.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ describeWithShallowAndMount('trigger', (mountingMethod) => {
const fn = () => div.trigger('click', {
target: {}
})
const message = '[vue-test-utils]: you cannot set the target value of an event. See the notes section of the docs for more details—https://vue-test-utils.vuejs.org/en/api/wrapper/trigger.html'
const message = '[vue-test-utils]: you cannot set the target value of an event. See the notes section of the docs for more details—https://vue-test-utils.vuejs.org/api/wrapper/trigger.html'
expect(fn).to.throw().with.property('message', message)
})

Expand Down