Skip to content

Commit

Permalink
chore: publish 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiller1990 committed Dec 14, 2020
1 parent 890b153 commit dc7a1b1
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 149 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "1.1.1"
"version": "1.1.2"
}
47 changes: 10 additions & 37 deletions packages/server-test-utils/dist/vue-server-test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -13454,28 +13454,6 @@ function getCoreProperties(componentOptions) {
}
}

function createClassString(staticClass, dynamicClass) {
// :class="someComputedObject" can return a string, object or undefined
// if it is a string, we don't need to do anything special.
var evaluatedDynamicClass = dynamicClass;

// if it is an object, eg { 'foo': true }, we need to evaluate it.
// see https://github.com/vuejs/vue-test-utils/issues/1474 for more context.
if (typeof dynamicClass === 'object') {
evaluatedDynamicClass = Object.keys(dynamicClass).reduce(function (acc, key) {
if (dynamicClass[key]) {
return acc + ' ' + key
}
return acc
}, '');
}

if (staticClass && evaluatedDynamicClass) {
return staticClass + ' ' + evaluatedDynamicClass
}
return staticClass || evaluatedDynamicClass
}

function resolveOptions(component, _Vue) {
if (isDynamicComponent(component)) {
return {}
Expand Down Expand Up @@ -13528,20 +13506,13 @@ function createStubFromComponent(

return h(
tagName,
{
ref: componentOptions.functional ? context.data.ref : undefined,
domProps: componentOptions.functional
? context.data.domProps
: undefined,
attrs: componentOptions.functional
? Object.assign({}, context.props,
context.data.attrs,
{class: createClassString(
context.data.staticClass,
context.data.class
)})
: Object.assign({}, this.$props)
},
componentOptions.functional
? Object.assign({}, context.data,
{attrs: Object.assign({}, context.props,
context.data.attrs)})
: {
attrs: Object.assign({}, this.$props)
},
context
? context.children
: this.$options._renderChildren ||
Expand Down Expand Up @@ -13838,8 +13809,10 @@ function createInstance(
};

// options "propsData" can only be used during instance creation with the `new` keyword
// "data" should be set only on component under test to avoid reactivity issues
var propsData = options.propsData;
var rest$1 = objectWithoutProperties( options, ["propsData"] );
var data = options.data;
var rest$1 = objectWithoutProperties( options, ["propsData", "data"] );
var rest = rest$1; // eslint-disable-line
var Parent = _Vue.extend(Object.assign({}, rest,
parentComponentOptions));
Expand Down
47 changes: 10 additions & 37 deletions packages/test-utils/dist/vue-test-utils.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -2281,28 +2281,6 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler) {
}
}

function createClassString(staticClass, dynamicClass) {
// :class="someComputedObject" can return a string, object or undefined
// if it is a string, we don't need to do anything special.
var evaluatedDynamicClass = dynamicClass;

// if it is an object, eg { 'foo': true }, we need to evaluate it.
// see https://github.com/vuejs/vue-test-utils/issues/1474 for more context.
if (typeof dynamicClass === 'object') {
evaluatedDynamicClass = Object.keys(dynamicClass).reduce(function (acc, key) {
if (dynamicClass[key]) {
return acc + ' ' + key
}
return acc
}, '');
}

if (staticClass && evaluatedDynamicClass) {
return staticClass + ' ' + evaluatedDynamicClass
}
return staticClass || evaluatedDynamicClass
}

function resolveOptions(component, _Vue) {
if (isDynamicComponent(component)) {
return {}
Expand Down Expand Up @@ -2355,20 +2333,13 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler) {

return h(
tagName,
{
ref: componentOptions.functional ? context.data.ref : undefined,
domProps: componentOptions.functional
? context.data.domProps
: undefined,
attrs: componentOptions.functional
? Object.assign({}, context.props,
context.data.attrs,
{class: createClassString(
context.data.staticClass,
context.data.class
)})
: Object.assign({}, this.$props)
},
componentOptions.functional
? Object.assign({}, context.data,
{attrs: Object.assign({}, context.props,
context.data.attrs)})
: {
attrs: Object.assign({}, this.$props)
},
context
? context.children
: this.$options._renderChildren ||
Expand Down Expand Up @@ -2665,8 +2636,10 @@ var VueTestUtils = (function (exports, Vue, vueTemplateCompiler) {
};

// options "propsData" can only be used during instance creation with the `new` keyword
// "data" should be set only on component under test to avoid reactivity issues
var propsData = options.propsData;
var rest$1 = objectWithoutProperties( options, ["propsData"] );
var data = options.data;
var rest$1 = objectWithoutProperties( options, ["propsData", "data"] );
var rest = rest$1; // eslint-disable-line
var Parent = _Vue.extend(Object.assign({}, rest,
parentComponentOptions));
Expand Down
47 changes: 10 additions & 37 deletions packages/test-utils/dist/vue-test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -2285,28 +2285,6 @@ function getCoreProperties(componentOptions) {
}
}

function createClassString(staticClass, dynamicClass) {
// :class="someComputedObject" can return a string, object or undefined
// if it is a string, we don't need to do anything special.
var evaluatedDynamicClass = dynamicClass;

// if it is an object, eg { 'foo': true }, we need to evaluate it.
// see https://github.com/vuejs/vue-test-utils/issues/1474 for more context.
if (typeof dynamicClass === 'object') {
evaluatedDynamicClass = Object.keys(dynamicClass).reduce(function (acc, key) {
if (dynamicClass[key]) {
return acc + ' ' + key
}
return acc
}, '');
}

if (staticClass && evaluatedDynamicClass) {
return staticClass + ' ' + evaluatedDynamicClass
}
return staticClass || evaluatedDynamicClass
}

function resolveOptions(component, _Vue) {
if (isDynamicComponent(component)) {
return {}
Expand Down Expand Up @@ -2359,20 +2337,13 @@ function createStubFromComponent(

return h(
tagName,
{
ref: componentOptions.functional ? context.data.ref : undefined,
domProps: componentOptions.functional
? context.data.domProps
: undefined,
attrs: componentOptions.functional
? Object.assign({}, context.props,
context.data.attrs,
{class: createClassString(
context.data.staticClass,
context.data.class
)})
: Object.assign({}, this.$props)
},
componentOptions.functional
? Object.assign({}, context.data,
{attrs: Object.assign({}, context.props,
context.data.attrs)})
: {
attrs: Object.assign({}, this.$props)
},
context
? context.children
: this.$options._renderChildren ||
Expand Down Expand Up @@ -2669,8 +2640,10 @@ function createInstance(
};

// options "propsData" can only be used during instance creation with the `new` keyword
// "data" should be set only on component under test to avoid reactivity issues
var propsData = options.propsData;
var rest$1 = objectWithoutProperties( options, ["propsData"] );
var data = options.data;
var rest$1 = objectWithoutProperties( options, ["propsData", "data"] );
var rest = rest$1; // eslint-disable-line
var Parent = _Vue.extend(Object.assign({}, rest,
parentComponentOptions));
Expand Down
47 changes: 10 additions & 37 deletions packages/test-utils/dist/vue-test-utils.umd.js
Original file line number Diff line number Diff line change
Expand Up @@ -2284,28 +2284,6 @@
}
}

function createClassString(staticClass, dynamicClass) {
// :class="someComputedObject" can return a string, object or undefined
// if it is a string, we don't need to do anything special.
var evaluatedDynamicClass = dynamicClass;

// if it is an object, eg { 'foo': true }, we need to evaluate it.
// see https://github.com/vuejs/vue-test-utils/issues/1474 for more context.
if (typeof dynamicClass === 'object') {
evaluatedDynamicClass = Object.keys(dynamicClass).reduce(function (acc, key) {
if (dynamicClass[key]) {
return acc + ' ' + key
}
return acc
}, '');
}

if (staticClass && evaluatedDynamicClass) {
return staticClass + ' ' + evaluatedDynamicClass
}
return staticClass || evaluatedDynamicClass
}

function resolveOptions(component, _Vue) {
if (isDynamicComponent(component)) {
return {}
Expand Down Expand Up @@ -2358,20 +2336,13 @@

return h(
tagName,
{
ref: componentOptions.functional ? context.data.ref : undefined,
domProps: componentOptions.functional
? context.data.domProps
: undefined,
attrs: componentOptions.functional
? Object.assign({}, context.props,
context.data.attrs,
{class: createClassString(
context.data.staticClass,
context.data.class
)})
: Object.assign({}, this.$props)
},
componentOptions.functional
? Object.assign({}, context.data,
{attrs: Object.assign({}, context.props,
context.data.attrs)})
: {
attrs: Object.assign({}, this.$props)
},
context
? context.children
: this.$options._renderChildren ||
Expand Down Expand Up @@ -2668,8 +2639,10 @@
};

// options "propsData" can only be used during instance creation with the `new` keyword
// "data" should be set only on component under test to avoid reactivity issues
var propsData = options.propsData;
var rest$1 = objectWithoutProperties( options, ["propsData"] );
var data = options.data;
var rest$1 = objectWithoutProperties( options, ["propsData", "data"] );
var rest = rest$1; // eslint-disable-line
var Parent = _Vue.extend(Object.assign({}, rest,
parentComponentOptions));
Expand Down

0 comments on commit dc7a1b1

Please sign in to comment.