diff --git a/docs/404.html b/docs/404.html index efd3042..20f999e 100644 --- a/docs/404.html +++ b/docs/404.html @@ -8,13 +8,13 @@ - +

404

That's a Four-Oh-Four.
Take me home.
- + diff --git a/docs/api/index.html b/docs/api/index.html index 2072498..4bded0e 100644 --- a/docs/api/index.html +++ b/docs/api/index.html @@ -8,7 +8,7 @@ - + @@ -656,6 +656,6 @@ wrapper.unmount() // removed from DOM })
- + diff --git a/docs/assets/js/10.2d2a2aa5.js b/docs/assets/js/10.7b8e2709.js similarity index 91% rename from docs/assets/js/10.2d2a2aa5.js rename to docs/assets/js/10.7b8e2709.js index 4a490c0..3fd1502 100644 --- a/docs/assets/js/10.2d2a2aa5.js +++ b/docs/assets/js/10.7b8e2709.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{211:function(t,e,n){"use strict";n.r(e);var o=n(28),a=Object(o.a)({},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("h1",{attrs:{id:"component-instance"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#component-instance"}},[t._v("#")]),t._v(" Component Instance")]),t._v(" "),n("p",[t._v("Mostly "),n("code",[t._v("findComponent()")]),t._v(", "),n("code",[t._v(".props()")]),t._v(" et al.")]),t._v(" "),n("p",[t._v("Also why "),n("code",[t._v(".vm")]),t._v(" is not available and yet another recommendation to test outputs instead of implementation details.")])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{209:function(t,e,n){"use strict";n.r(e);var o=n(28),a=Object(o.a)({},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("h1",{attrs:{id:"component-instance"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#component-instance"}},[t._v("#")]),t._v(" Component Instance")]),t._v(" "),n("p",[t._v("Mostly "),n("code",[t._v("findComponent()")]),t._v(", "),n("code",[t._v(".props()")]),t._v(" et al.")]),t._v(" "),n("p",[t._v("Also why "),n("code",[t._v(".vm")]),t._v(" is not available and yet another recommendation to test outputs instead of implementation details.")])])}),[],!1,null,null,null);e.default=a.exports}}]); \ No newline at end of file diff --git a/docs/assets/js/11.cb716554.js b/docs/assets/js/11.f1fbf83d.js similarity index 99% rename from docs/assets/js/11.cb716554.js rename to docs/assets/js/11.f1fbf83d.js index e1abbb2..7ed354a 100644 --- a/docs/assets/js/11.cb716554.js +++ b/docs/assets/js/11.f1fbf83d.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{209:function(t,s,n){"use strict";n.r(s);var a=n(28),e=Object(a.a)({},(function(){var t=this,s=t.$createElement,n=t._self._c||s;return n("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[n("h1",{attrs:{id:"conditional-rendering"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#conditional-rendering"}},[t._v("#")]),t._v(" Conditional Rendering")]),t._v(" "),n("p",[t._v("Vue Test Utils has a range of features for rendering and making assertions about the state of a component, with the goal of verifying it is behaving correctly. This article will explore how to render components, as well as verify they are rendering content correctly.")]),t._v(" "),n("h2",{attrs:{id:"finding-elements"}},[n("a",{staticClass:"header-anchor",attrs:{href:"#finding-elements"}},[t._v("#")]),t._v(" Finding Elements")]),t._v(" "),n("p",[t._v("One of the most basic features of Vue is the ability to dynamically show, hide and remove elements with "),n("code",[t._v("v-if")]),t._v(". Let's look at how to test a component that uses "),n("code",[t._v("v-if")]),t._v(".")]),t._v(" "),n("div",{staticClass:"language-js extra-class"},[n("pre",{pre:!0,attrs:{class:"language-js"}},[n("code",[n("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("const")]),t._v(" Nav "),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v("=")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n template"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token template-string"}},[n("span",{pre:!0,attrs:{class:"token template-punctuation string"}},[t._v("`")]),n("span",{pre:!0,attrs:{class:"token string"}},[t._v('\n \n ')]),n("span",{pre:!0,attrs:{class:"token template-punctuation string"}},[t._v("`")])]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),n("span",{pre:!0,attrs:{class:"token function"}},[t._v("data")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("(")]),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(")")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),n("span",{pre:!0,attrs:{class:"token keyword"}},[t._v("return")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n admin"),n("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),n("span",{pre:!0,attrs:{class:"token boolean"}},[t._v("false")]),t._v("\n "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n "),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),n("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n")])])]),n("p",[t._v("In the "),n("code",[t._v("