vue-test-utils
Advanced tools
Comparing version 1.0.0-beta.7 to 1.0.0-beta.8
@@ -290,3 +290,2 @@ 'use strict'; | ||
debugger | ||
if (vnode.child) { | ||
@@ -311,3 +310,2 @@ components.push(vnode.child); | ||
function findVueComponents (root, componentName) { | ||
debugger | ||
var components = root._isVue ? findAllVueComponentsFromVm(root) : findAllVueComponentsFromVnode(root); | ||
@@ -700,3 +698,3 @@ return components.filter(function (component) { | ||
var classes = [].concat( this.element.classList ); | ||
var classes = this.element.className ? this.element.className.split(' ') : []; | ||
// Handle converting cssmodules identifiers back to the original class name | ||
@@ -781,2 +779,4 @@ if (this.vm && this.vm.$style) { | ||
Wrapper.prototype.hasAttribute = function hasAttribute (attribute, value) { | ||
warn('hasAttribute() has been deprecated and will be removed in version 1.0.0. Use attributes() instead—https://vue-test-utils.vuejs.org/en/api/wrapper/attributes'); | ||
if (typeof attribute !== 'string') { | ||
@@ -799,2 +799,3 @@ throwError('wrapper.hasAttribute() must be passed attribute as a string'); | ||
warn('hasClass() has been deprecated and will be removed in version 1.0.0. Use classes() instead—https://vue-test-utils.vuejs.org/en/api/wrapper/classes'); | ||
var targetClass = className; | ||
@@ -822,2 +823,4 @@ | ||
Wrapper.prototype.hasProp = function hasProp (prop, value) { | ||
warn('hasProp() has been deprecated and will be removed in version 1.0.0. Use props() instead—https://vue-test-utils.vuejs.org/en/api/wrapper/props'); | ||
if (!this.isVueComponent) { | ||
@@ -1662,3 +1665,4 @@ throwError('wrapper.hasProp() must be called on a Vue instance'); | ||
) | ||
} | ||
}, | ||
name: component.name | ||
} | ||
@@ -1665,0 +1669,0 @@ } |
{ | ||
"name": "vue-test-utils", | ||
"version": "1.0.0-beta.7", | ||
"version": "1.0.0-beta.8", | ||
"description": "Utilities for testing Vue components.", | ||
@@ -64,3 +64,3 @@ "main": "dist/vue-test-utils.js", | ||
"gitbook-plugin-theme-vuejs": "^1.1.0", | ||
"jsdom": "^11.0.0", | ||
"jsdom": "^11.5.1", | ||
"jsdom-global": "^3.0.2", | ||
@@ -67,0 +67,0 @@ "karma": "^1.7.0", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
416276
12567