{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/6649","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/6649/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/6649/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/6649/events","html_url":"https://github.com/vuejs/vue/issues/6649","id":258974244,"number":6649,"title":"Problem testing with and VuePrograssBar","user":{"login":"guilazzaris","id":13590429,"avatar_url":"https://avatars0.githubusercontent.com/u/13590429?v=4","gravatar_id":"","url":"https://api.github.com/users/guilazzaris","html_url":"https://github.com/guilazzaris","followers_url":"https://api.github.com/users/guilazzaris/followers","following_url":"https://api.github.com/users/guilazzaris/following{/other_user}","gists_url":"https://api.github.com/users/guilazzaris/gists{/gist_id}","starred_url":"https://api.github.com/users/guilazzaris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guilazzaris/subscriptions","organizations_url":"https://api.github.com/users/guilazzaris/orgs","repos_url":"https://api.github.com/users/guilazzaris/repos","events_url":"https://api.github.com/users/guilazzaris/events{/privacy}","received_events_url":"https://api.github.com/users/guilazzaris/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-19T21:45:05Z","updated_at":"2017-09-19T21:45:05Z","closed_at":"2017-09-19T21:45:05Z","author_association":"NONE","body":"I'm having a problem testing with Avoriaz my own generic component that wraps a plugin called VuePrograssBar (http://hilongjw.github.io/vue-progressbar/)\r\n\r\nI'm trying to test that my own generic component (Loading) is indeed calling the VuePrograssBar plugin.\r\n\r\nLoading Component:\r\n\r\n```\r\n<template>\r\n  <vue-progress-bar/>\r\n</template>\r\n\r\n<script>\r\n  export default {\r\n    name: 'loading',\r\n    created() {\r\n      this.$router.beforeEach((to, from, next) => {\r\n        this.$Progress.start();\r\n        next();\r\n      });\r\n\r\n      this.$router.afterEach(() => {\r\n        this.$Progress.finish();\r\n      });\r\n    },\r\n  };\r\n</script>\r\n\r\n```\r\n\r\nMy Test (Mocha, Chai, Avoriaz):\r\n```\r\nimport { shallow } from 'avoriaz';\r\n\r\nimport Vue from 'vue';\r\nimport router from '@/router';\r\nimport Loading from '@/components/Loading';\r\nimport VueProgressBar from 'vue-progressbar';\r\n\r\ndescribe('Loading.vue', () => {\r\n  let wrapper;\r\n\r\n  beforeEach(() => {\r\n    Vue.use(VueProgressBar);\r\n    wrapper = shallow(Loading, { router });\r\n  });\r\n\r\n  describe.only('Rendering', () => {\r\n    it('should render a Loading component', () => {\r\n      expect(wrapper.contains()).to.equal(true);\r\n    });\r\n  });\r\n});\r\n```\r\n\r\nBut I'm getting this error:\r\n```\r\n✗ should render a Loading component\r\n[avoriaz]: wrapper.contains() must be passed a valid CSS selector or a Vue constructor\r\nerror@webpack:///~/avoriaz/dist/avoriaz.js:134:0 <- index.js:12227:45\r\ncontains@webpack:///~/avoriaz/dist/avoriaz.js:169:0 <- index.js:12262:10\r\nwebpack:///test/unit/specs/components/Loading.spec.js:22:13 <- index.js:24064:30\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/330682905","html_url":"https://github.com/vuejs/vue/issues/6649#issuecomment-330682905","issue_url":"https://api.github.com/repos/vuejs/vue/issues/6649","id":330682905,"user":{"login":"vue-issue-bot","id":26507650,"avatar_url":"https://avatars0.githubusercontent.com/u/26507650?v=4","gravatar_id":"","url":"https://api.github.com/users/vue-issue-bot","html_url":"https://github.com/vue-issue-bot","followers_url":"https://api.github.com/users/vue-issue-bot/followers","following_url":"https://api.github.com/users/vue-issue-bot/following{/other_user}","gists_url":"https://api.github.com/users/vue-issue-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/vue-issue-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vue-issue-bot/subscriptions","organizations_url":"https://api.github.com/users/vue-issue-bot/orgs","repos_url":"https://api.github.com/users/vue-issue-bot/repos","events_url":"https://api.github.com/users/vue-issue-bot/events{/privacy}","received_events_url":"https://api.github.com/users/vue-issue-bot/received_events","type":"User","site_admin":false},"created_at":"2017-09-19T21:45:05Z","updated_at":"2017-09-19T21:45:05Z","author_association":"NONE","body":"Hello, your issue has been closed because it does not conform to our issue requirements. Please use the [Issue Helper](https://new-issue.vuejs.org) to create an issue - thank you!\n"}}
{"actor":{"display_login":"vue-issue-bot"}}