Skip to content

Commit

Permalink
Add atlasobscura case
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jul 13, 2017
1 parent da392f6 commit d2a8f22
Show file tree
Hide file tree
Showing 3 changed files with 1,744 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/web/atlasobscura/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('atlasobscura', 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 d2a8f22

Please sign in to comment.