diff --git a/__snapshots__/index.js.snap-shot b/__snapshots__/index.js.snap-shot index f30840f25..98a0e2b77 100644 --- a/__snapshots__/index.js.snap-shot +++ b/__snapshots__/index.js.snap-shot @@ -789,3 +789,15 @@ exports['zdnet 1'] = { "title": "Email security startup Agari raises $22 million to help enterprises fight phishing attacks | ZDNet", "url": "http://www.zdnet.com/article/email-security-startup-agari-raises-22-million-to-help-enterprises-fight-phishing-attacks" } + +exports['vimeo 1'] = { + "author": null, + "date": null, + "description": "- Client: OGN (CJ E&M) - Producer: Yeonjung Hong - Creative Director: Youngmin Kim - Motion Design: Youngmin Kim, Gyuhwan Yu, Dahee Ahn - Sound Design: Stone…", + "image": "https://i.vimeocdn.com/filter/overlay?src0=https://i.vimeocdn.com/video/613524460_1280x720.webp&src1=https://f.vimeocdn.com/images_v6/share/play_icon_overlay.png", + "logo": "https://i.vimeocdn.com/favicon/main-touch_180", + "publisher": "Vimeo", + "title": "Overwatch APEX Season2 Title", + "url": "https://vimeo.com/200104989" +} + diff --git a/test/web/vimeo/index.js b/test/web/vimeo/index.js new file mode 100644 index 000000000..51c03c038 --- /dev/null +++ b/test/web/vimeo/index.js @@ -0,0 +1,18 @@ +'use strict' + +const snapshot = require('snap-shot') +const {promisify} = require('util') +const {resolve} = require('path') + +const fs = require('fs') + +const getMetaData = require('../../..') +const readFile = promisify(fs.readFile) + +const url = 'https://vimeo.com/200104989' + +it('vimeo', async () => { + const html = await readFile(resolve(__dirname, 'input.html')) + const metadata = await getMetaData({html, url}) + snapshot(metadata) +}) diff --git a/test/web/vimeo/input.html b/test/web/vimeo/input.html new file mode 100644 index 000000000..9df8e9315 --- /dev/null +++ b/test/web/vimeo/input.html @@ -0,0 +1,1104 @@ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +