Skip to content

Commit a103ea4

Browse files
committed
Add linkedin company profile
1 parent 7a1ef68 commit a103ea4

File tree

5 files changed

+243
-3
lines changed

5 files changed

+243
-3
lines changed

__snapshots__/index.js.snap-shot

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,18 @@ exports['lean-data 1'] = {
350350
"url": "http://www.leandatainc.com/account-based-sales-marketing/the-winds-of-change"
351351
}
352352

353-
exports['linkedin 1'] = {
353+
exports['linkedin (company) 1'] = {
354+
"author": null,
355+
"date": null,
356+
"description": null,
357+
"image": null,
358+
"logo": "https://static.licdn.com/sc/h/eahiplrwoq61f4uan012ia17i",
359+
"publisher": "LinkedIn领英",
360+
"title": "LinkedIn",
361+
"url": "https://www.linkedin.com/company/10529043/"
362+
}
363+
364+
exports['linkedin (pulse) 1'] = {
354365
"author": "Ramya Joseph",
355366
"date": "2016-05-26T00:00:00.000Z",
356367
"description": "We had a tweetstorm today on #FinAI and the role AI will play to change financial services. Here is the consolidation of tweets. 1/ Fintech in 2016 is similar to the Internet in 1996 – Yahoo,",
@@ -778,4 +789,3 @@ exports['zdnet 1'] = {
778789
"title": "Email security startup Agari raises $22 million to help enterprises fight phishing attacks | ZDNet",
779790
"url": "http://www.zdnet.com/article/email-security-startup-agari-raises-22-million-to-help-enterprises-fight-phishing-attacks"
780791
}
781-

test/web/linkedin-company/index.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use strict'
2+
3+
const snapshot = require('snap-shot')
4+
const {promisify} = require('util')
5+
const {resolve} = require('path')
6+
7+
const fs = require('fs')
8+
9+
const getMetaData = require('../../..')
10+
const readFile = promisify(fs.readFile)
11+
12+
const url = 'https://www.linkedin.com/company/10529043/'
13+
14+
it('linkedin (company)', async () => {
15+
const html = await readFile(resolve(__dirname, 'input.html'))
16+
const metadata = await getMetaData({html, url})
17+
snapshot(metadata)
18+
})

test/web/linkedin-company/input.html

Lines changed: 212 additions & 0 deletions
Large diffs are not rendered by default.

test/web/linkedin/index.js renamed to test/web/linkedin-pulse/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const readFile = promisify(fs.readFile)
1111

1212
const url = 'https://www.linkedin.com/pulse/how-can-ai-change-financial-services-consolidation-finai-ramya-joseph'
1313

14-
it('linkedin', async () => {
14+
it('linkedin (pulse)', async () => {
1515
const html = await readFile(resolve(__dirname, 'input.html'))
1616
const metadata = await getMetaData({html, url})
1717
snapshot(metadata)
File renamed without changes.

0 commit comments

Comments
 (0)