Skip to content

Commit

Permalink
chore: commit dist files for 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed May 6, 2020
1 parent 17d336e commit ce81da4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 49 deletions.
2 changes: 1 addition & 1 deletion packages/server-test-utils/dist/vue-server-test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1784,7 +1784,7 @@ function warnDeprecated(method, fallback) {
if ( fallback === void 0 ) fallback = '';

if (!testUtils.config.showDeprecationWarnings) { return }
var msg = method + " is deprecated and will removed in the next major version";
var msg = method + " is deprecated and will be removed in the next major version";
if (fallback) { msg += " " + fallback; }
warn(msg);
}
Expand Down
22 changes: 6 additions & 16 deletions packages/test-utils/dist/vue-test-utils.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -1819,7 +1819,7 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler, testUtils) {
if ( fallback === void 0 ) fallback = '';

if (!testUtils.config.showDeprecationWarnings) { return }
var msg = method + " is deprecated and will removed in the next major version";
var msg = method + " is deprecated and will be removed in the next major version";
if (fallback) { msg += " " + fallback; }
warn(msg);
}
Expand Down Expand Up @@ -10393,7 +10393,7 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler, testUtils) {
* Calls destroy on vm
*/
Wrapper.prototype.destroy = function destroy () {
if (!this.isVueInstance() && !this.isFunctionalComponent) {
if (!this.vm && !this.isFunctionalComponent) {
throwError(
"wrapper.destroy() can only be called on a Vue instance or " +
"functional component."
Expand All @@ -10404,7 +10404,7 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler, testUtils) {
this.element.parentNode.removeChild(this.element);
}

if (this.isVueInstance()) {
if (this.vm) {
// $FlowIgnore
this.vm.$destroy();
throwIfInstancesThrew(this.vm);
Expand Down Expand Up @@ -10623,7 +10623,7 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler, testUtils) {
*/
Wrapper.prototype.isVisible = function isVisible () {
warnDeprecated(
'isEmpty',
'isVisible',
"Consider a custom matcher such as those provided in jest-dom: https://github.com/testing-library/jest-dom#tobevisible"
);
var element = this.element;
Expand Down Expand Up @@ -10683,7 +10683,7 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler, testUtils) {

warnDeprecated("overview");

if (!this.isVueInstance()) {
if (!this.vm) {
throwError("wrapper.overview() can only be called on a Vue instance");
}

Expand Down Expand Up @@ -10794,11 +10794,6 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler, testUtils) {
Wrapper.prototype.setChecked = function setChecked (checked) {
if ( checked === void 0 ) checked = true;

warnDeprecated(
"setChecked",
'When you migrate to VTU 2, use setValue instead.'
);

if (typeof checked !== 'boolean') {
throwError('wrapper.setChecked() must be passed a boolean');
}
Expand Down Expand Up @@ -10846,11 +10841,6 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler, testUtils) {
* @deprecated
*/
Wrapper.prototype.setSelected = function setSelected () {
warnDeprecated(
"setSelected",
'When you migrate to VTU 2, use setValue instead.'
);

var tagName = this.element.tagName;

if (tagName === 'SELECT') {
Expand Down Expand Up @@ -10908,7 +10898,7 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler, testUtils) {

warnDeprecated("setMethods");

if (!this.isVueInstance()) {
if (!this.vm) {
throwError("wrapper.setMethods() can only be called on a Vue instance");
}
Object.keys(methods).forEach(function (key) {
Expand Down
22 changes: 6 additions & 16 deletions packages/test-utils/dist/vue-test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1824,7 +1824,7 @@ function warnDeprecated(method, fallback) {
if ( fallback === void 0 ) fallback = '';

if (!testUtils.config.showDeprecationWarnings) { return }
var msg = method + " is deprecated and will removed in the next major version";
var msg = method + " is deprecated and will be removed in the next major version";
if (fallback) { msg += " " + fallback; }
warn(msg);
}
Expand Down Expand Up @@ -10398,7 +10398,7 @@ Wrapper.prototype.contains = function contains (rawSelector) {
* Calls destroy on vm
*/
Wrapper.prototype.destroy = function destroy () {
if (!this.isVueInstance() && !this.isFunctionalComponent) {
if (!this.vm && !this.isFunctionalComponent) {
throwError(
"wrapper.destroy() can only be called on a Vue instance or " +
"functional component."
Expand All @@ -10409,7 +10409,7 @@ Wrapper.prototype.destroy = function destroy () {
this.element.parentNode.removeChild(this.element);
}

if (this.isVueInstance()) {
if (this.vm) {
// $FlowIgnore
this.vm.$destroy();
throwIfInstancesThrew(this.vm);
Expand Down Expand Up @@ -10628,7 +10628,7 @@ Wrapper.prototype.isEmpty = function isEmpty () {
*/
Wrapper.prototype.isVisible = function isVisible () {
warnDeprecated(
'isEmpty',
'isVisible',
"Consider a custom matcher such as those provided in jest-dom: https://github.com/testing-library/jest-dom#tobevisible"
);
var element = this.element;
Expand Down Expand Up @@ -10688,7 +10688,7 @@ Wrapper.prototype.overview = function overview () {

warnDeprecated("overview");

if (!this.isVueInstance()) {
if (!this.vm) {
throwError("wrapper.overview() can only be called on a Vue instance");
}

Expand Down Expand Up @@ -10799,11 +10799,6 @@ Wrapper.prototype.props = function props (key) {
Wrapper.prototype.setChecked = function setChecked (checked) {
if ( checked === void 0 ) checked = true;

warnDeprecated(
"setChecked",
'When you migrate to VTU 2, use setValue instead.'
);

if (typeof checked !== 'boolean') {
throwError('wrapper.setChecked() must be passed a boolean');
}
Expand Down Expand Up @@ -10851,11 +10846,6 @@ Wrapper.prototype.setChecked = function setChecked (checked) {
* @deprecated
*/
Wrapper.prototype.setSelected = function setSelected () {
warnDeprecated(
"setSelected",
'When you migrate to VTU 2, use setValue instead.'
);

var tagName = this.element.tagName;

if (tagName === 'SELECT') {
Expand Down Expand Up @@ -10913,7 +10903,7 @@ Wrapper.prototype.setMethods = function setMethods (methods) {

warnDeprecated("setMethods");

if (!this.isVueInstance()) {
if (!this.vm) {
throwError("wrapper.setMethods() can only be called on a Vue instance");
}
Object.keys(methods).forEach(function (key) {
Expand Down
22 changes: 6 additions & 16 deletions packages/test-utils/dist/vue-test-utils.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -1822,7 +1822,7 @@
if ( fallback === void 0 ) fallback = '';

if (!testUtils.config.showDeprecationWarnings) { return }
var msg = method + " is deprecated and will removed in the next major version";
var msg = method + " is deprecated and will be removed in the next major version";
if (fallback) { msg += " " + fallback; }
warn(msg);
}
Expand Down Expand Up @@ -10396,7 +10396,7 @@
* Calls destroy on vm
*/
Wrapper.prototype.destroy = function destroy () {
if (!this.isVueInstance() && !this.isFunctionalComponent) {
if (!this.vm && !this.isFunctionalComponent) {
throwError(
"wrapper.destroy() can only be called on a Vue instance or " +
"functional component."
Expand All @@ -10407,7 +10407,7 @@
this.element.parentNode.removeChild(this.element);
}

if (this.isVueInstance()) {
if (this.vm) {
// $FlowIgnore
this.vm.$destroy();
throwIfInstancesThrew(this.vm);
Expand Down Expand Up @@ -10626,7 +10626,7 @@
*/
Wrapper.prototype.isVisible = function isVisible () {
warnDeprecated(
'isEmpty',
'isVisible',
"Consider a custom matcher such as those provided in jest-dom: https://github.com/testing-library/jest-dom#tobevisible"
);
var element = this.element;
Expand Down Expand Up @@ -10686,7 +10686,7 @@

warnDeprecated("overview");

if (!this.isVueInstance()) {
if (!this.vm) {
throwError("wrapper.overview() can only be called on a Vue instance");
}

Expand Down Expand Up @@ -10797,11 +10797,6 @@
Wrapper.prototype.setChecked = function setChecked (checked) {
if ( checked === void 0 ) checked = true;

warnDeprecated(
"setChecked",
'When you migrate to VTU 2, use setValue instead.'
);

if (typeof checked !== 'boolean') {
throwError('wrapper.setChecked() must be passed a boolean');
}
Expand Down Expand Up @@ -10849,11 +10844,6 @@
* @deprecated
*/
Wrapper.prototype.setSelected = function setSelected () {
warnDeprecated(
"setSelected",
'When you migrate to VTU 2, use setValue instead.'
);

var tagName = this.element.tagName;

if (tagName === 'SELECT') {
Expand Down Expand Up @@ -10911,7 +10901,7 @@

warnDeprecated("setMethods");

if (!this.isVueInstance()) {
if (!this.vm) {
throwError("wrapper.setMethods() can only be called on a Vue instance");
}
Object.keys(methods).forEach(function (key) {
Expand Down

0 comments on commit ce81da4

Please sign in to comment.