Skip to content

Commit ce81da4

Browse files
committed
chore: commit dist files for 1.0.2
1 parent 17d336e commit ce81da4

File tree

4 files changed

+19
-49
lines changed

4 files changed

+19
-49
lines changed

packages/server-test-utils/dist/vue-server-test-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,7 @@ function warnDeprecated(method, fallback) {
17841784
if ( fallback === void 0 ) fallback = '';
17851785

17861786
if (!testUtils.config.showDeprecationWarnings) { return }
1787-
var msg = method + " is deprecated and will removed in the next major version";
1787+
var msg = method + " is deprecated and will be removed in the next major version";
17881788
if (fallback) { msg += " " + fallback; }
17891789
warn(msg);
17901790
}

packages/test-utils/dist/vue-test-utils.iife.js

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,7 +1819,7 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler, testUtils) {
18191819
if ( fallback === void 0 ) fallback = '';
18201820

18211821
if (!testUtils.config.showDeprecationWarnings) { return }
1822-
var msg = method + " is deprecated and will removed in the next major version";
1822+
var msg = method + " is deprecated and will be removed in the next major version";
18231823
if (fallback) { msg += " " + fallback; }
18241824
warn(msg);
18251825
}
@@ -10393,7 +10393,7 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler, testUtils) {
1039310393
* Calls destroy on vm
1039410394
*/
1039510395
Wrapper.prototype.destroy = function destroy () {
10396-
if (!this.isVueInstance() && !this.isFunctionalComponent) {
10396+
if (!this.vm && !this.isFunctionalComponent) {
1039710397
throwError(
1039810398
"wrapper.destroy() can only be called on a Vue instance or " +
1039910399
"functional component."
@@ -10404,7 +10404,7 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler, testUtils) {
1040410404
this.element.parentNode.removeChild(this.element);
1040510405
}
1040610406

10407-
if (this.isVueInstance()) {
10407+
if (this.vm) {
1040810408
// $FlowIgnore
1040910409
this.vm.$destroy();
1041010410
throwIfInstancesThrew(this.vm);
@@ -10623,7 +10623,7 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler, testUtils) {
1062310623
*/
1062410624
Wrapper.prototype.isVisible = function isVisible () {
1062510625
warnDeprecated(
10626-
'isEmpty',
10626+
'isVisible',
1062710627
"Consider a custom matcher such as those provided in jest-dom: https://github.com/testing-library/jest-dom#tobevisible"
1062810628
);
1062910629
var element = this.element;
@@ -10683,7 +10683,7 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler, testUtils) {
1068310683

1068410684
warnDeprecated("overview");
1068510685

10686-
if (!this.isVueInstance()) {
10686+
if (!this.vm) {
1068710687
throwError("wrapper.overview() can only be called on a Vue instance");
1068810688
}
1068910689

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

10797-
warnDeprecated(
10798-
"setChecked",
10799-
'When you migrate to VTU 2, use setValue instead.'
10800-
);
10801-
1080210797
if (typeof checked !== 'boolean') {
1080310798
throwError('wrapper.setChecked() must be passed a boolean');
1080410799
}
@@ -10846,11 +10841,6 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler, testUtils) {
1084610841
* @deprecated
1084710842
*/
1084810843
Wrapper.prototype.setSelected = function setSelected () {
10849-
warnDeprecated(
10850-
"setSelected",
10851-
'When you migrate to VTU 2, use setValue instead.'
10852-
);
10853-
1085410844
var tagName = this.element.tagName;
1085510845

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

1090910899
warnDeprecated("setMethods");
1091010900

10911-
if (!this.isVueInstance()) {
10901+
if (!this.vm) {
1091210902
throwError("wrapper.setMethods() can only be called on a Vue instance");
1091310903
}
1091410904
Object.keys(methods).forEach(function (key) {

packages/test-utils/dist/vue-test-utils.js

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1824,7 +1824,7 @@ function warnDeprecated(method, fallback) {
18241824
if ( fallback === void 0 ) fallback = '';
18251825

18261826
if (!testUtils.config.showDeprecationWarnings) { return }
1827-
var msg = method + " is deprecated and will removed in the next major version";
1827+
var msg = method + " is deprecated and will be removed in the next major version";
18281828
if (fallback) { msg += " " + fallback; }
18291829
warn(msg);
18301830
}
@@ -10398,7 +10398,7 @@ Wrapper.prototype.contains = function contains (rawSelector) {
1039810398
* Calls destroy on vm
1039910399
*/
1040010400
Wrapper.prototype.destroy = function destroy () {
10401-
if (!this.isVueInstance() && !this.isFunctionalComponent) {
10401+
if (!this.vm && !this.isFunctionalComponent) {
1040210402
throwError(
1040310403
"wrapper.destroy() can only be called on a Vue instance or " +
1040410404
"functional component."
@@ -10409,7 +10409,7 @@ Wrapper.prototype.destroy = function destroy () {
1040910409
this.element.parentNode.removeChild(this.element);
1041010410
}
1041110411

10412-
if (this.isVueInstance()) {
10412+
if (this.vm) {
1041310413
// $FlowIgnore
1041410414
this.vm.$destroy();
1041510415
throwIfInstancesThrew(this.vm);
@@ -10628,7 +10628,7 @@ Wrapper.prototype.isEmpty = function isEmpty () {
1062810628
*/
1062910629
Wrapper.prototype.isVisible = function isVisible () {
1063010630
warnDeprecated(
10631-
'isEmpty',
10631+
'isVisible',
1063210632
"Consider a custom matcher such as those provided in jest-dom: https://github.com/testing-library/jest-dom#tobevisible"
1063310633
);
1063410634
var element = this.element;
@@ -10688,7 +10688,7 @@ Wrapper.prototype.overview = function overview () {
1068810688

1068910689
warnDeprecated("overview");
1069010690

10691-
if (!this.isVueInstance()) {
10691+
if (!this.vm) {
1069210692
throwError("wrapper.overview() can only be called on a Vue instance");
1069310693
}
1069410694

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

10802-
warnDeprecated(
10803-
"setChecked",
10804-
'When you migrate to VTU 2, use setValue instead.'
10805-
);
10806-
1080710802
if (typeof checked !== 'boolean') {
1080810803
throwError('wrapper.setChecked() must be passed a boolean');
1080910804
}
@@ -10851,11 +10846,6 @@ Wrapper.prototype.setChecked = function setChecked (checked) {
1085110846
* @deprecated
1085210847
*/
1085310848
Wrapper.prototype.setSelected = function setSelected () {
10854-
warnDeprecated(
10855-
"setSelected",
10856-
'When you migrate to VTU 2, use setValue instead.'
10857-
);
10858-
1085910849
var tagName = this.element.tagName;
1086010850

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

1091410904
warnDeprecated("setMethods");
1091510905

10916-
if (!this.isVueInstance()) {
10906+
if (!this.vm) {
1091710907
throwError("wrapper.setMethods() can only be called on a Vue instance");
1091810908
}
1091910909
Object.keys(methods).forEach(function (key) {

packages/test-utils/dist/vue-test-utils.umd.js

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1822,7 +1822,7 @@
18221822
if ( fallback === void 0 ) fallback = '';
18231823

18241824
if (!testUtils.config.showDeprecationWarnings) { return }
1825-
var msg = method + " is deprecated and will removed in the next major version";
1825+
var msg = method + " is deprecated and will be removed in the next major version";
18261826
if (fallback) { msg += " " + fallback; }
18271827
warn(msg);
18281828
}
@@ -10396,7 +10396,7 @@
1039610396
* Calls destroy on vm
1039710397
*/
1039810398
Wrapper.prototype.destroy = function destroy () {
10399-
if (!this.isVueInstance() && !this.isFunctionalComponent) {
10399+
if (!this.vm && !this.isFunctionalComponent) {
1040010400
throwError(
1040110401
"wrapper.destroy() can only be called on a Vue instance or " +
1040210402
"functional component."
@@ -10407,7 +10407,7 @@
1040710407
this.element.parentNode.removeChild(this.element);
1040810408
}
1040910409

10410-
if (this.isVueInstance()) {
10410+
if (this.vm) {
1041110411
// $FlowIgnore
1041210412
this.vm.$destroy();
1041310413
throwIfInstancesThrew(this.vm);
@@ -10626,7 +10626,7 @@
1062610626
*/
1062710627
Wrapper.prototype.isVisible = function isVisible () {
1062810628
warnDeprecated(
10629-
'isEmpty',
10629+
'isVisible',
1063010630
"Consider a custom matcher such as those provided in jest-dom: https://github.com/testing-library/jest-dom#tobevisible"
1063110631
);
1063210632
var element = this.element;
@@ -10686,7 +10686,7 @@
1068610686

1068710687
warnDeprecated("overview");
1068810688

10689-
if (!this.isVueInstance()) {
10689+
if (!this.vm) {
1069010690
throwError("wrapper.overview() can only be called on a Vue instance");
1069110691
}
1069210692

@@ -10797,11 +10797,6 @@
1079710797
Wrapper.prototype.setChecked = function setChecked (checked) {
1079810798
if ( checked === void 0 ) checked = true;
1079910799

10800-
warnDeprecated(
10801-
"setChecked",
10802-
'When you migrate to VTU 2, use setValue instead.'
10803-
);
10804-
1080510800
if (typeof checked !== 'boolean') {
1080610801
throwError('wrapper.setChecked() must be passed a boolean');
1080710802
}
@@ -10849,11 +10844,6 @@
1084910844
* @deprecated
1085010845
*/
1085110846
Wrapper.prototype.setSelected = function setSelected () {
10852-
warnDeprecated(
10853-
"setSelected",
10854-
'When you migrate to VTU 2, use setValue instead.'
10855-
);
10856-
1085710847
var tagName = this.element.tagName;
1085810848

1085910849
if (tagName === 'SELECT') {
@@ -10911,7 +10901,7 @@
1091110901

1091210902
warnDeprecated("setMethods");
1091310903

10914-
if (!this.isVueInstance()) {
10904+
if (!this.vm) {
1091510905
throwError("wrapper.setMethods() can only be called on a Vue instance");
1091610906
}
1091710907
Object.keys(methods).forEach(function (key) {

0 commit comments

Comments
 (0)