From f48a4f71a7315c048ef90ba2fe2c261cf2eea34d Mon Sep 17 00:00:00 2001 From: CodinCat Date: Wed, 11 Dec 2019 23:51:15 +0900 Subject: [PATCH] test(e2e): add e2e test for commits example (#526) * test(e2e): add e2e test for commits example * test(e2e): add waitForResponse to enhance the test * test(e2e): use mocks for commits test --- .../vue/examples/__tests__/commits.spec.ts | 39 ++ packages/vue/examples/classic/commits.html | 18 +- .../vue/examples/composition/commits.html | 16 +- packages/vue/examples/mocks/commits.js | 575 ++++++++++++++++++ 4 files changed, 639 insertions(+), 9 deletions(-) create mode 100644 packages/vue/examples/__tests__/commits.spec.ts create mode 100644 packages/vue/examples/mocks/commits.js diff --git a/packages/vue/examples/__tests__/commits.spec.ts b/packages/vue/examples/__tests__/commits.spec.ts new file mode 100644 index 000000000..68db65402 --- /dev/null +++ b/packages/vue/examples/__tests__/commits.spec.ts @@ -0,0 +1,39 @@ +import path from 'path' +import { setupPuppeteer } from './e2eUtils' + +describe('e2e: commits', () => { + const { page, click, count, text, isChecked } = setupPuppeteer() + + async function testCommits(apiType: 'classic' | 'composition') { + const baseUrl = `file://${path.resolve( + __dirname, + `../${apiType}/commits.html#test` + )}` + + await page().goto(baseUrl) + await page().waitFor('li') + expect(await count('input')).toBe(2) + expect(await count('label')).toBe(2) + expect(await text('label[for="master"]')).toBe('master') + expect(await text('label[for="sync"]')).toBe('sync') + expect(await isChecked('#master')).toBe(true) + expect(await isChecked('#sync')).toBe(false) + expect(await text('p')).toBe('vuejs/vue@master') + expect(await count('li')).toBe(3) + expect(await count('li .commit')).toBe(3) + expect(await count('li .message')).toBe(3) + await click('#sync') + expect(await text('p')).toBe('vuejs/vue@sync') + expect(await count('li')).toBe(3) + expect(await count('li .commit')).toBe(3) + expect(await count('li .message')).toBe(3) + } + + test('classic', async () => { + await testCommits('classic') + }) + + test('composition', async () => { + await testCommits('composition') + }) +}) diff --git a/packages/vue/examples/classic/commits.html b/packages/vue/examples/classic/commits.html index d88f0e28b..d44cab4f1 100644 --- a/packages/vue/examples/classic/commits.html +++ b/packages/vue/examples/classic/commits.html @@ -1,4 +1,5 @@ +

Latest Vue.js Commits

@@ -41,11 +42,18 @@ const App = { methods: { fetchData() { - fetch(`${API_URL}${this.currentBranch}`) - .then(res => res.json()) - .then(data => { - this.commits = data - }) + if (window.location.hash === '#test') { + // use mocks in e2e to avoid dependency on network / authentication + setTimeout(() => { + this.commits = window.MOCKS[this.currentBranch] + }, 0) + } else { + fetch(`${API_URL}${this.currentBranch}`) + .then(res => res.json()) + .then(data => { + this.commits = data + }) + } }, truncate(v) { const newline = v.indexOf('\n') diff --git a/packages/vue/examples/composition/commits.html b/packages/vue/examples/composition/commits.html index 5212f79be..bf5b0c85c 100644 --- a/packages/vue/examples/composition/commits.html +++ b/packages/vue/examples/composition/commits.html @@ -1,4 +1,5 @@ +

Latest Vue.js Commits

@@ -37,10 +38,17 @@ const App = { const currentBranch = ref('master') const commits = ref(null) - watch(() => { - fetch(`${API_URL}${currentBranch.value}`) - .then(res => res.json()) - .then(data => { commits.value = data }) + watch([currentBranch, commits], () => { + if (window.location.hash === '#test') { + // use mocks in e2e to avoid dependency on network / authentication + setTimeout(() => { + commits.value = window.MOCKS[currentBranch.value] + }, 0) + } else { + fetch(`${API_URL}${currentBranch.value}`) + .then(res => res.json()) + .then(data => { commits.value = data }) + } }) return { diff --git a/packages/vue/examples/mocks/commits.js b/packages/vue/examples/mocks/commits.js new file mode 100644 index 000000000..b375839a6 --- /dev/null +++ b/packages/vue/examples/mocks/commits.js @@ -0,0 +1,575 @@ +window.MOCKS = { + master: [ + { + sha: 'd1527fbee422c7170e56845e55b49c4fd6de72a7', + node_id: + 'MDY6Q29tbWl0MTM3MDc4NDg3OmQxNTI3ZmJlZTQyMmM3MTcwZTU2ODQ1ZTU1YjQ5YzRmZDZkZTcyYTc=', + commit: { + author: { + name: 'Haoqun Jiang', + email: 'haoqunjiang@gmail.com', + date: '2019-12-09T19:52:20Z' + }, + committer: { + name: 'Evan You', + email: 'yyx990803@gmail.com', + date: '2019-12-09T19:52:20Z' + }, + message: 'test: add test for runtime-dom/modules/class (#75)', + tree: { + sha: 'f53f761827af281db86c31d113086c068c1d0789', + url: + 'https://api.github.com/repos/vuejs/vue-next/git/trees/f53f761827af281db86c31d113086c068c1d0789' + }, + url: + 'https://api.github.com/repos/vuejs/vue-next/git/commits/d1527fbee422c7170e56845e55b49c4fd6de72a7', + comment_count: 0, + verification: { + verified: false, + reason: 'unsigned', + signature: null, + payload: null + } + }, + url: + 'https://api.github.com/repos/vuejs/vue-next/commits/d1527fbee422c7170e56845e55b49c4fd6de72a7', + html_url: + 'https://github.com/vuejs/vue-next/commit/d1527fbee422c7170e56845e55b49c4fd6de72a7', + comments_url: + 'https://api.github.com/repos/vuejs/vue-next/commits/d1527fbee422c7170e56845e55b49c4fd6de72a7/comments', + author: { + login: 'sodatea', + id: 3277634, + node_id: 'MDQ6VXNlcjMyNzc2MzQ=', + avatar_url: 'https://avatars3.githubusercontent.com/u/3277634?v=4', + gravatar_id: '', + url: 'https://api.github.com/users/sodatea', + html_url: 'https://github.com/sodatea', + followers_url: 'https://api.github.com/users/sodatea/followers', + following_url: + 'https://api.github.com/users/sodatea/following{/other_user}', + gists_url: 'https://api.github.com/users/sodatea/gists{/gist_id}', + starred_url: + 'https://api.github.com/users/sodatea/starred{/owner}{/repo}', + subscriptions_url: 'https://api.github.com/users/sodatea/subscriptions', + organizations_url: 'https://api.github.com/users/sodatea/orgs', + repos_url: 'https://api.github.com/users/sodatea/repos', + events_url: 'https://api.github.com/users/sodatea/events{/privacy}', + received_events_url: + 'https://api.github.com/users/sodatea/received_events', + type: 'User', + site_admin: false + }, + committer: { + login: 'yyx990803', + id: 499550, + node_id: 'MDQ6VXNlcjQ5OTU1MA==', + avatar_url: 'https://avatars1.githubusercontent.com/u/499550?v=4', + 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 + }, + parents: [ + { + sha: '2383b45e322272ddc102d6914c149b284a25d04f', + url: + 'https://api.github.com/repos/vuejs/vue-next/commits/2383b45e322272ddc102d6914c149b284a25d04f', + html_url: + 'https://github.com/vuejs/vue-next/commit/2383b45e322272ddc102d6914c149b284a25d04f' + } + ] + }, + { + sha: '2383b45e322272ddc102d6914c149b284a25d04f', + node_id: + 'MDY6Q29tbWl0MTM3MDc4NDg3OjIzODNiNDVlMzIyMjcyZGRjMTAyZDY5MTRjMTQ5YjI4NGEyNWQwNGY=', + commit: { + author: { + name: 'GCA', + email: 'gcaaa31928@gmail.com', + date: '2019-12-09T19:23:57Z' + }, + committer: { + name: 'Evan You', + email: 'yyx990803@gmail.com', + date: '2019-12-09T19:23:57Z' + }, + message: 'chore: fix typo (#530) [ci skip]', + tree: { + sha: '2a5872ff8dc8ccb8121abd7e890ac3c0c9f1209f', + url: + 'https://api.github.com/repos/vuejs/vue-next/git/trees/2a5872ff8dc8ccb8121abd7e890ac3c0c9f1209f' + }, + url: + 'https://api.github.com/repos/vuejs/vue-next/git/commits/2383b45e322272ddc102d6914c149b284a25d04f', + comment_count: 0, + verification: { + verified: false, + reason: 'unsigned', + signature: null, + payload: null + } + }, + url: + 'https://api.github.com/repos/vuejs/vue-next/commits/2383b45e322272ddc102d6914c149b284a25d04f', + html_url: + 'https://github.com/vuejs/vue-next/commit/2383b45e322272ddc102d6914c149b284a25d04f', + comments_url: + 'https://api.github.com/repos/vuejs/vue-next/commits/2383b45e322272ddc102d6914c149b284a25d04f/comments', + author: { + login: 'gcaaa31928', + id: 6309392, + node_id: 'MDQ6VXNlcjYzMDkzOTI=', + avatar_url: 'https://avatars1.githubusercontent.com/u/6309392?v=4', + gravatar_id: '', + url: 'https://api.github.com/users/gcaaa31928', + html_url: 'https://github.com/gcaaa31928', + followers_url: 'https://api.github.com/users/gcaaa31928/followers', + following_url: + 'https://api.github.com/users/gcaaa31928/following{/other_user}', + gists_url: 'https://api.github.com/users/gcaaa31928/gists{/gist_id}', + starred_url: + 'https://api.github.com/users/gcaaa31928/starred{/owner}{/repo}', + subscriptions_url: + 'https://api.github.com/users/gcaaa31928/subscriptions', + organizations_url: 'https://api.github.com/users/gcaaa31928/orgs', + repos_url: 'https://api.github.com/users/gcaaa31928/repos', + events_url: 'https://api.github.com/users/gcaaa31928/events{/privacy}', + received_events_url: + 'https://api.github.com/users/gcaaa31928/received_events', + type: 'User', + site_admin: false + }, + committer: { + login: 'yyx990803', + id: 499550, + node_id: 'MDQ6VXNlcjQ5OTU1MA==', + avatar_url: 'https://avatars1.githubusercontent.com/u/499550?v=4', + 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 + }, + parents: [ + { + sha: 'e7e1314cccd1a66fcf8b8526ec21350ec16cc3ad', + url: + 'https://api.github.com/repos/vuejs/vue-next/commits/e7e1314cccd1a66fcf8b8526ec21350ec16cc3ad', + html_url: + 'https://github.com/vuejs/vue-next/commit/e7e1314cccd1a66fcf8b8526ec21350ec16cc3ad' + } + ] + }, + { + sha: 'e7e1314cccd1a66fcf8b8526ec21350ec16cc3ad', + node_id: + 'MDY6Q29tbWl0MTM3MDc4NDg3OmU3ZTEzMTRjY2NkMWE2NmZjZjhiODUyNmVjMjEzNTBlYzE2Y2MzYWQ=', + commit: { + author: { + name: 'Evan You', + email: 'yyx990803@gmail.com', + date: '2019-12-09T19:23:01Z' + }, + committer: { + name: 'Evan You', + email: 'yyx990803@gmail.com', + date: '2019-12-09T19:23:01Z' + }, + message: 'test: fix warning', + tree: { + sha: 'd942b17681e2e2fbbcd2ee04092390c7f2cf534d', + url: + 'https://api.github.com/repos/vuejs/vue-next/git/trees/d942b17681e2e2fbbcd2ee04092390c7f2cf534d' + }, + url: + 'https://api.github.com/repos/vuejs/vue-next/git/commits/e7e1314cccd1a66fcf8b8526ec21350ec16cc3ad', + comment_count: 0, + verification: { + verified: false, + reason: 'unsigned', + signature: null, + payload: null + } + }, + url: + 'https://api.github.com/repos/vuejs/vue-next/commits/e7e1314cccd1a66fcf8b8526ec21350ec16cc3ad', + html_url: + 'https://github.com/vuejs/vue-next/commit/e7e1314cccd1a66fcf8b8526ec21350ec16cc3ad', + comments_url: + 'https://api.github.com/repos/vuejs/vue-next/commits/e7e1314cccd1a66fcf8b8526ec21350ec16cc3ad/comments', + author: { + login: 'yyx990803', + id: 499550, + node_id: 'MDQ6VXNlcjQ5OTU1MA==', + avatar_url: 'https://avatars1.githubusercontent.com/u/499550?v=4', + 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 + }, + committer: { + login: 'yyx990803', + id: 499550, + node_id: 'MDQ6VXNlcjQ5OTU1MA==', + avatar_url: 'https://avatars1.githubusercontent.com/u/499550?v=4', + 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 + }, + parents: [ + { + sha: '12ec62e6881f83dfa6c7f8a3c3650ec2567e6b1e', + url: + 'https://api.github.com/repos/vuejs/vue-next/commits/12ec62e6881f83dfa6c7f8a3c3650ec2567e6b1e', + html_url: + 'https://github.com/vuejs/vue-next/commit/12ec62e6881f83dfa6c7f8a3c3650ec2567e6b1e' + } + ] + } + ], + sync: [ + { + sha: 'ecf4da822eea97f5db5fa769d39f994755384a4b', + node_id: + 'MDY6Q29tbWl0MTM3MDc4NDg3OmVjZjRkYTgyMmVlYTk3ZjVkYjVmYTc2OWQzOWY5OTQ3NTUzODRhNGI=', + commit: { + author: { + name: 'Evan You', + email: 'yyx990803@gmail.com', + date: '2018-11-13T03:42:34Z' + }, + committer: { + name: 'Evan You', + email: 'yyx990803@gmail.com', + date: '2018-11-13T03:54:01Z' + }, + message: 'chore: fix tests', + tree: { + sha: '6ac7bd078a6eb0ad32b5102e0c5d2c29f2b20a48', + url: + 'https://api.github.com/repos/vuejs/vue-next/git/trees/6ac7bd078a6eb0ad32b5102e0c5d2c29f2b20a48' + }, + url: + 'https://api.github.com/repos/vuejs/vue-next/git/commits/ecf4da822eea97f5db5fa769d39f994755384a4b', + comment_count: 0, + verification: { + verified: false, + reason: 'unsigned', + signature: null, + payload: null + } + }, + url: + 'https://api.github.com/repos/vuejs/vue-next/commits/ecf4da822eea97f5db5fa769d39f994755384a4b', + html_url: + 'https://github.com/vuejs/vue-next/commit/ecf4da822eea97f5db5fa769d39f994755384a4b', + comments_url: + 'https://api.github.com/repos/vuejs/vue-next/commits/ecf4da822eea97f5db5fa769d39f994755384a4b/comments', + author: { + login: 'yyx990803', + id: 499550, + node_id: 'MDQ6VXNlcjQ5OTU1MA==', + avatar_url: 'https://avatars1.githubusercontent.com/u/499550?v=4', + 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 + }, + committer: { + login: 'yyx990803', + id: 499550, + node_id: 'MDQ6VXNlcjQ5OTU1MA==', + avatar_url: 'https://avatars1.githubusercontent.com/u/499550?v=4', + 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 + }, + parents: [ + { + sha: 'ca296812d54aff123472d7147b83fddfb634d9bc', + url: + 'https://api.github.com/repos/vuejs/vue-next/commits/ca296812d54aff123472d7147b83fddfb634d9bc', + html_url: + 'https://github.com/vuejs/vue-next/commit/ca296812d54aff123472d7147b83fddfb634d9bc' + } + ] + }, + { + sha: 'ca296812d54aff123472d7147b83fddfb634d9bc', + node_id: + 'MDY6Q29tbWl0MTM3MDc4NDg3OmNhMjk2ODEyZDU0YWZmMTIzNDcyZDcxNDdiODNmZGRmYjYzNGQ5YmM=', + commit: { + author: { + name: 'Evan You', + email: 'yyx990803@gmail.com', + date: '2018-11-13T03:21:56Z' + }, + committer: { + name: 'Evan You', + email: 'yyx990803@gmail.com', + date: '2018-11-13T03:46:06Z' + }, + message: 'refactor: bring back clone for reused nodes', + tree: { + sha: '2cec32c97686e0ee9af1b87f0abdbbbdc18b6de6', + url: + 'https://api.github.com/repos/vuejs/vue-next/git/trees/2cec32c97686e0ee9af1b87f0abdbbbdc18b6de6' + }, + url: + 'https://api.github.com/repos/vuejs/vue-next/git/commits/ca296812d54aff123472d7147b83fddfb634d9bc', + comment_count: 0, + verification: { + verified: false, + reason: 'unsigned', + signature: null, + payload: null + } + }, + url: + 'https://api.github.com/repos/vuejs/vue-next/commits/ca296812d54aff123472d7147b83fddfb634d9bc', + html_url: + 'https://github.com/vuejs/vue-next/commit/ca296812d54aff123472d7147b83fddfb634d9bc', + comments_url: + 'https://api.github.com/repos/vuejs/vue-next/commits/ca296812d54aff123472d7147b83fddfb634d9bc/comments', + author: { + login: 'yyx990803', + id: 499550, + node_id: 'MDQ6VXNlcjQ5OTU1MA==', + avatar_url: 'https://avatars1.githubusercontent.com/u/499550?v=4', + 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 + }, + committer: { + login: 'yyx990803', + id: 499550, + node_id: 'MDQ6VXNlcjQ5OTU1MA==', + avatar_url: 'https://avatars1.githubusercontent.com/u/499550?v=4', + 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 + }, + parents: [ + { + sha: 'e6be55a4989edb6f8750dbaa14eb693ec1f0d67b', + url: + 'https://api.github.com/repos/vuejs/vue-next/commits/e6be55a4989edb6f8750dbaa14eb693ec1f0d67b', + html_url: + 'https://github.com/vuejs/vue-next/commit/e6be55a4989edb6f8750dbaa14eb693ec1f0d67b' + } + ] + }, + { + sha: 'e6be55a4989edb6f8750dbaa14eb693ec1f0d67b', + node_id: + 'MDY6Q29tbWl0MTM3MDc4NDg3OmU2YmU1NWE0OTg5ZWRiNmY4NzUwZGJhYTE0ZWI2OTNlYzFmMGQ2N2I=', + commit: { + author: { + name: 'Evan You', + email: 'yyx990803@gmail.com', + date: '2018-11-02T20:59:45Z' + }, + committer: { + name: 'Evan You', + email: 'yyx990803@gmail.com', + date: '2018-11-02T20:59:45Z' + }, + message: 'chore: relax render type for tsx', + tree: { + sha: '7e2b3bb92ab91f755b2251e4a7903e6dd2042602', + url: + 'https://api.github.com/repos/vuejs/vue-next/git/trees/7e2b3bb92ab91f755b2251e4a7903e6dd2042602' + }, + url: + 'https://api.github.com/repos/vuejs/vue-next/git/commits/e6be55a4989edb6f8750dbaa14eb693ec1f0d67b', + comment_count: 0, + verification: { + verified: false, + reason: 'unsigned', + signature: null, + payload: null + } + }, + url: + 'https://api.github.com/repos/vuejs/vue-next/commits/e6be55a4989edb6f8750dbaa14eb693ec1f0d67b', + html_url: + 'https://github.com/vuejs/vue-next/commit/e6be55a4989edb6f8750dbaa14eb693ec1f0d67b', + comments_url: + 'https://api.github.com/repos/vuejs/vue-next/commits/e6be55a4989edb6f8750dbaa14eb693ec1f0d67b/comments', + author: { + login: 'yyx990803', + id: 499550, + node_id: 'MDQ6VXNlcjQ5OTU1MA==', + avatar_url: 'https://avatars1.githubusercontent.com/u/499550?v=4', + 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 + }, + committer: { + login: 'yyx990803', + id: 499550, + node_id: 'MDQ6VXNlcjQ5OTU1MA==', + avatar_url: 'https://avatars1.githubusercontent.com/u/499550?v=4', + 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 + }, + parents: [ + { + sha: 'ccc835caff0344baad3c92ce786ad4f804bf667b', + url: + 'https://api.github.com/repos/vuejs/vue-next/commits/ccc835caff0344baad3c92ce786ad4f804bf667b', + html_url: + 'https://github.com/vuejs/vue-next/commit/ccc835caff0344baad3c92ce786ad4f804bf667b' + } + ] + } + ] +}