We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7733a65 commit 428bc4fCopy full SHA for 428bc4f
test/unit/specs/directives/component_spec.js
@@ -263,7 +263,22 @@ if (_.inBrowser) {
263
expect(el.innerHTML).toBe('<ul><li>1</li><li>2</li></ul>')
264
})
265
266
- it('wait-for', function (done) {
+ it('wait-for for static component', function () {
267
+ var vm = new Vue({
268
+ el: el,
269
+ template: '<view-a wait-for="ok"></view-a>',
270
+ components: {
271
+ 'view-a': {
272
+ template: 'AAA'
273
+ }
274
275
+ })
276
+ expect(el.textContent).toBe('')
277
+ vm._children[0].$emit('ok')
278
+ expect(el.textContent).toBe('AAA')
279
280
+
281
+ it('wait-for for dynamic components', function (done) {
282
var vm = new Vue({
283
el: el,
284
data: {
0 commit comments