{"action":"created","comment":{"url":"https://api.github.com/repos/vuejs/vue/pulls/comments/61228506","id":61228506,"diff_hunk":"@@ -0,0 +1,110 @@\n+import Vue from 'vue'\n+\n+describe('Directive v-once', () => {\n+  it('should not rerender component', done => {\n+    const vm = new Vue({\n+      el: '#app',\n+      template: '<div v-once>{{ a }}</div>',\n+      data: { a: 'hello' }\n+    })\n+    waitForUpdate(() => {","path":"test/unit/features/directives/once.spec.js","position":10,"original_position":10,"commit_id":"9eb2086ff566e5e6d3b7844808802e587379f461","original_commit_id":"9eb2086ff566e5e6d3b7844808802e587379f461","user":{"login":"yyx990803","id":499550,"avatar_url":"https://avatars.githubusercontent.com/u/499550?v=3","gravatar_id":"","url":"https://api.github.com/users/yyx990803","html_url":"https://github.com/yyx990803","followers_url":"https://api.github.com/users/yyx990803/followers","following_url":"https://api.github.com/users/yyx990803/following{/other_user}","gists_url":"https://api.github.com/users/yyx990803/gists{/gist_id}","starred_url":"https://api.github.com/users/yyx990803/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyx990803/subscriptions","organizations_url":"https://api.github.com/users/yyx990803/orgs","repos_url":"https://api.github.com/users/yyx990803/repos","events_url":"https://api.github.com/users/yyx990803/events{/privacy}","received_events_url":"https://api.github.com/users/yyx990803/received_events","type":"User","site_admin":false},"body":"the initial rendering is sync so you don't have to wait to assert the initial render.","created_at":"2016-04-27T09:29:45Z","updated_at":"2016-04-27T09:29:45Z","html_url":"https://github.com/vuejs/vue/pull/2740#discussion_r61228506","pull_request_url":"https://api.github.com/repos/vuejs/vue/pulls/2740","_links":{"self":{"href":"https://api.github.com/repos/vuejs/vue/pulls/comments/61228506"},"html":{"href":"https://github.com/vuejs/vue/pull/2740#discussion_r61228506"},"pull_request":{"href":"https://api.github.com/repos/vuejs/vue/pulls/2740"}}},"pull_request":{"url":"https://api.github.com/repos/vuejs/vue/pulls/2740","id":67963523,"html_url":"https://github.com/vuejs/vue/pull/2740","diff_url":"https://github.com/vuejs/vue/pull/2740.diff","patch_url":"https://github.com/vuejs/vue/pull/2740.patch","issue_url":"https://api.github.com/repos/vuejs/vue/issues/2740","number":2740,"state":"open","locked":false,"title":"added v-once directive unit tests","user":{"login":"blake-newman","id":7272211,"avatar_url":"https://avatars.githubusercontent.com/u/7272211?v=3","gravatar_id":"","url":"https://api.github.com/users/blake-newman","html_url":"https://github.com/blake-newman","followers_url":"https://api.github.com/users/blake-newman/followers","following_url":"https://api.github.com/users/blake-newman/following{/other_user}","gists_url":"https://api.github.com/users/blake-newman/gists{/gist_id}","starred_url":"https://api.github.com/users/blake-newman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blake-newman/subscriptions","organizations_url":"https://api.github.com/users/blake-newman/orgs","repos_url":"https://api.github.com/users/blake-newman/repos","events_url":"https://api.github.com/users/blake-newman/events{/privacy}","received_events_url":"https://api.github.com/users/blake-newman/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-26T21:44:46Z","updated_at":"2016-04-27T09:29:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39fbc888b077f589b9e79d1e01e9ef0e8d4bf6c7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vuejs/vue/pulls/2740/commits","review_comments_url":"https://api.github.com/repos/vuejs/vue/pulls/2740/comments","review_comment_url":"https://api.github.com/repos/vuejs/vue/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/2740/comments","statuses_url":"https://api.github.com/repos/vuejs/vue/statuses/9eb2086ff566e5e6d3b7844808802e587379f461","head":{"label":"blake-newman:feature/tests/v-once","ref":"feature/tests/v-once","sha":"9eb2086ff566e5e6d3b7844808802e587379f461","user":{"login":"blake-newman","id":7272211,"avatar_url":"https://avatars.githubusercontent.com/u/7272211?v=3","gravatar_id":"","url":"https://api.github.com/users/blake-newman","html_url":"https://github.com/blake-newman","followers_url":"https://api.github.com/users/blake-newman/followers","following_url":"https://api.github.com/users/blake-newman/following{/other_user}","gists_url":"https://api.github.com/users/blake-newman/gists{/gist_id}","starred_url":"https://api.github.com/users/blake-newman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blake-newman/subscriptions","organizations_url":"https://api.github.com/users/blake-newman/orgs","repos_url":"https://api.github.com/users/blake-newman/repos","events_url":"https://api.github.com/users/blake-newman/events{/privacy}","received_events_url":"https://api.github.com/users/blake-newman/received_events","type":"User","site_admin":false},"repo":{"id":52200549,"name":"vue","full_name":"blake-newman/vue","owner":{"login":"blake-newman","id":7272211,"avatar_url":"https://avatars.githubusercontent.com/u/7272211?v=3","gravatar_id":"","url":"https://api.github.com/users/blake-newman","html_url":"https://github.com/blake-newman","followers_url":"https://api.github.com/users/blake-newman/followers","following_url":"https://api.github.com/users/blake-newman/following{/other_user}","gists_url":"https://api.github.com/users/blake-newman/gists{/gist_id}","starred_url":"https://api.github.com/users/blake-newman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blake-newman/subscriptions","organizations_url":"https://api.github.com/users/blake-newman/orgs","repos_url":"https://api.github.com/users/blake-newman/repos","events_url":"https://api.github.com/users/blake-newman/events{/privacy}","received_events_url":"https://api.github.com/users/blake-newman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/blake-newman/vue","description":"Simple yet powerful library for building modern web interfaces.","fork":true,"url":"https://api.github.com/repos/blake-newman/vue","forks_url":"https://api.github.com/repos/blake-newman/vue/forks","keys_url":"https://api.github.com/repos/blake-newman/vue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/blake-newman/vue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/blake-newman/vue/teams","hooks_url":"https://api.github.com/repos/blake-newman/vue/hooks","issue_events_url":"https://api.github.com/repos/blake-newman/vue/issues/events{/number}","events_url":"https://api.github.com/repos/blake-newman/vue/events","assignees_url":"https://api.github.com/repos/blake-newman/vue/assignees{/user}","branches_url":"https://api.github.com/repos/blake-newman/vue/branches{/branch}","tags_url":"https://api.github.com/repos/blake-newman/vue/tags","blobs_url":"https://api.github.com/repos/blake-newman/vue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/blake-newman/vue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/blake-newman/vue/git/refs{/sha}","trees_url":"https://api.github.com/repos/blake-newman/vue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/blake-newman/vue/statuses/{sha}","languages_url":"https://api.github.com/repos/blake-newman/vue/languages","stargazers_url":"https://api.github.com/repos/blake-newman/vue/stargazers","contributors_url":"https://api.github.com/repos/blake-newman/vue/contributors","subscribers_url":"https://api.github.com/repos/blake-newman/vue/subscribers","subscription_url":"https://api.github.com/repos/blake-newman/vue/subscription","commits_url":"https://api.github.com/repos/blake-newman/vue/commits{/sha}","git_commits_url":"https://api.github.com/repos/blake-newman/vue/git/commits{/sha}","comments_url":"https://api.github.com/repos/blake-newman/vue/comments{/number}","issue_comment_url":"https://api.github.com/repos/blake-newman/vue/issues/comments{/number}","contents_url":"https://api.github.com/repos/blake-newman/vue/contents/{+path}","compare_url":"https://api.github.com/repos/blake-newman/vue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/blake-newman/vue/merges","archive_url":"https://api.github.com/repos/blake-newman/vue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/blake-newman/vue/downloads","issues_url":"https://api.github.com/repos/blake-newman/vue/issues{/number}","pulls_url":"https://api.github.com/repos/blake-newman/vue/pulls{/number}","milestones_url":"https://api.github.com/repos/blake-newman/vue/milestones{/number}","notifications_url":"https://api.github.com/repos/blake-newman/vue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/blake-newman/vue/labels{/name}","releases_url":"https://api.github.com/repos/blake-newman/vue/releases{/id}","deployments_url":"https://api.github.com/repos/blake-newman/vue/deployments","created_at":"2016-02-21T10:04:15Z","updated_at":"2016-02-21T10:04:17Z","pushed_at":"2016-04-26T21:44:15Z","git_url":"git://github.com/blake-newman/vue.git","ssh_url":"git@github.com:blake-newman/vue.git","clone_url":"https://github.com/blake-newman/vue.git","svn_url":"https://github.com/blake-newman/vue","homepage":"http://vuejs.org","size":9943,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"vuejs:next","ref":"next","sha":"2792f3c95e0ce5e1166e0a677cedb55e37de9535","user":{"login":"vuejs","id":6128107,"avatar_url":"https://avatars.githubusercontent.com/u/6128107?v=3","gravatar_id":"","url":"https://api.github.com/users/vuejs","html_url":"https://github.com/vuejs","followers_url":"https://api.github.com/users/vuejs/followers","following_url":"https://api.github.com/users/vuejs/following{/other_user}","gists_url":"https://api.github.com/users/vuejs/gists{/gist_id}","starred_url":"https://api.github.com/users/vuejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuejs/subscriptions","organizations_url":"https://api.github.com/users/vuejs/orgs","repos_url":"https://api.github.com/users/vuejs/repos","events_url":"https://api.github.com/users/vuejs/events{/privacy}","received_events_url":"https://api.github.com/users/vuejs/received_events","type":"Organization","site_admin":false},"repo":{"id":11730342,"name":"vue","full_name":"vuejs/vue","owner":{"login":"vuejs","id":6128107,"avatar_url":"https://avatars.githubusercontent.com/u/6128107?v=3","gravatar_id":"","url":"https://api.github.com/users/vuejs","html_url":"https://github.com/vuejs","followers_url":"https://api.github.com/users/vuejs/followers","following_url":"https://api.github.com/users/vuejs/following{/other_user}","gists_url":"https://api.github.com/users/vuejs/gists{/gist_id}","starred_url":"https://api.github.com/users/vuejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuejs/subscriptions","organizations_url":"https://api.github.com/users/vuejs/orgs","repos_url":"https://api.github.com/users/vuejs/repos","events_url":"https://api.github.com/users/vuejs/events{/privacy}","received_events_url":"https://api.github.com/users/vuejs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vuejs/vue","description":"Simple yet powerful library for building modern web interfaces.","fork":false,"url":"https://api.github.com/repos/vuejs/vue","forks_url":"https://api.github.com/repos/vuejs/vue/forks","keys_url":"https://api.github.com/repos/vuejs/vue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vuejs/vue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vuejs/vue/teams","hooks_url":"https://api.github.com/repos/vuejs/vue/hooks","issue_events_url":"https://api.github.com/repos/vuejs/vue/issues/events{/number}","events_url":"https://api.github.com/repos/vuejs/vue/events","assignees_url":"https://api.github.com/repos/vuejs/vue/assignees{/user}","branches_url":"https://api.github.com/repos/vuejs/vue/branches{/branch}","tags_url":"https://api.github.com/repos/vuejs/vue/tags","blobs_url":"https://api.github.com/repos/vuejs/vue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vuejs/vue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vuejs/vue/git/refs{/sha}","trees_url":"https://api.github.com/repos/vuejs/vue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vuejs/vue/statuses/{sha}","languages_url":"https://api.github.com/repos/vuejs/vue/languages","stargazers_url":"https://api.github.com/repos/vuejs/vue/stargazers","contributors_url":"https://api.github.com/repos/vuejs/vue/contributors","subscribers_url":"https://api.github.com/repos/vuejs/vue/subscribers","subscription_url":"https://api.github.com/repos/vuejs/vue/subscription","commits_url":"https://api.github.com/repos/vuejs/vue/commits{/sha}","git_commits_url":"https://api.github.com/repos/vuejs/vue/git/commits{/sha}","comments_url":"https://api.github.com/repos/vuejs/vue/comments{/number}","issue_comment_url":"https://api.github.com/repos/vuejs/vue/issues/comments{/number}","contents_url":"https://api.github.com/repos/vuejs/vue/contents/{+path}","compare_url":"https://api.github.com/repos/vuejs/vue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vuejs/vue/merges","archive_url":"https://api.github.com/repos/vuejs/vue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vuejs/vue/downloads","issues_url":"https://api.github.com/repos/vuejs/vue/issues{/number}","pulls_url":"https://api.github.com/repos/vuejs/vue/pulls{/number}","milestones_url":"https://api.github.com/repos/vuejs/vue/milestones{/number}","notifications_url":"https://api.github.com/repos/vuejs/vue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vuejs/vue/labels{/name}","releases_url":"https://api.github.com/repos/vuejs/vue/releases{/id}","deployments_url":"https://api.github.com/repos/vuejs/vue/deployments","created_at":"2013-07-29T03:24:51Z","updated_at":"2016-04-27T09:24:59Z","pushed_at":"2016-04-27T09:27:43Z","git_url":"git://github.com/vuejs/vue.git","ssh_url":"git@github.com:vuejs/vue.git","clone_url":"https://github.com/vuejs/vue.git","svn_url":"https://github.com/vuejs/vue","homepage":"http://vuejs.org","size":10934,"stargazers_count":17241,"watchers_count":17241,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1654,"mirror_url":null,"open_issues_count":36,"forks":1654,"open_issues":36,"watchers":17241,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/vuejs/vue/pulls/2740"},"html":{"href":"https://github.com/vuejs/vue/pull/2740"},"issue":{"href":"https://api.github.com/repos/vuejs/vue/issues/2740"},"comments":{"href":"https://api.github.com/repos/vuejs/vue/issues/2740/comments"},"review_comments":{"href":"https://api.github.com/repos/vuejs/vue/pulls/2740/comments"},"review_comment":{"href":"https://api.github.com/repos/vuejs/vue/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vuejs/vue/pulls/2740/commits"},"statuses":{"href":"https://api.github.com/repos/vuejs/vue/statuses/9eb2086ff566e5e6d3b7844808802e587379f461"}}}}