Skip to content

Commit

Permalink
Add arstechnica case
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jul 11, 2017
1 parent 9967f1e commit 0c27159
Show file tree
Hide file tree
Showing 3 changed files with 571 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/web/arstechnica/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
'use strict'

const {load: loadJSON} = require('json-future')
const {resolve} = require('path')
const {promisify} = require('util')
const should = require('should')
const fs = require('fs')

const getMetaData = require('../../..')
const readFile = promisify(fs.readFile)

it('arstechnica', async () => {
const html = await readFile(resolve(__dirname, 'input.html'))
const json = await loadJSON(resolve(__dirname, 'output.json'))
const metadata = await getMetaData({html})
should(metadata).be.eql(json)
})
Loading

0 comments on commit 0c27159

Please sign in to comment.