From 381c5466d309b25d7c09bb45deb4a12569b8694a Mon Sep 17 00:00:00 2001 From: divya Date: Mon, 28 May 2018 17:57:36 -0500 Subject: [PATCH] fix: Update links to docs Closes #3 --- packages/test-utils/src/warn-if-no-window.js | 2 +- packages/test-utils/src/wrapper.js | 2 +- test/specs/wrapper/trigger.spec.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/test-utils/src/warn-if-no-window.js b/packages/test-utils/src/warn-if-no-window.js index bbb3a7f99..a640d5077 100644 --- a/packages/test-utils/src/warn-if-no-window.js +++ b/packages/test-utils/src/warn-if-no-window.js @@ -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.' ) } } diff --git a/packages/test-utils/src/wrapper.js b/packages/test-utils/src/wrapper.js index 8965f08f4..71b444e75 100644 --- a/packages/test-utils/src/wrapper.js +++ b/packages/test-utils/src/wrapper.js @@ -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 diff --git a/test/specs/wrapper/trigger.spec.js b/test/specs/wrapper/trigger.spec.js index 8b4b7bb5d..247b4b520 100644 --- a/test/specs/wrapper/trigger.spec.js +++ b/test/specs/wrapper/trigger.spec.js @@ -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) })