File tree Expand file tree Collapse file tree 3 files changed +1355
-0
lines changed
test/integration/soundcloud Expand file tree Collapse file tree 3 files changed +1355
-0
lines changed Original file line number Diff line number Diff line change @@ -801,3 +801,13 @@ exports['zdnet 1'] = {
801
801
"url": "http://www.zdnet.com/article/email-security-startup-agari-raises-22-million-to-help-enterprises-fight-phishing-attacks"
802
802
}
803
803
804
+ exports['soundcloud 1'] = {
805
+ "author": null,
806
+ "date": "2014-01-27T16:19:55.000Z",
807
+ "description": "Thanks for 5.000 likes on https://www.facebook.com/BeautyBrainMusic :D <3 <3 <3",
808
+ "image": "https://i1.sndcdn.com/artworks-000069142357-nwttc6-t500x500.jpg",
809
+ "logo": "https://a-v2.sndcdn.com/assets/images/sc-icons/ios-a62dfc8f.png",
810
+ "publisher": "SoundCloud",
811
+ "title": "Swag Bandicoot [FREE DOWNLOAD]",
812
+ "url": "https://soundcloud.com/beautybrainsp/beauty-brain-swag-bandicoot"
813
+ }
Original file line number Diff line number Diff line change
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 metascraper = require ( '../../..' )
10
+ const readFile = promisify ( fs . readFile )
11
+
12
+ const url = 'https://soundcloud.com/beautybrainsp/beauty-brain-swag-bandicoot'
13
+
14
+ it ( 'soundcloud' , async ( ) => {
15
+ const html = await readFile ( resolve ( __dirname , 'input.html' ) )
16
+ const metadata = await metascraper ( { html, url } )
17
+ snapshot ( metadata )
18
+ } )
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments