Skip to content

Commit d2a8f22

Browse files
committed
Add atlasobscura case
1 parent da392f6 commit d2a8f22

File tree

3 files changed

+1744
-0
lines changed

3 files changed

+1744
-0
lines changed

test/web/atlasobscura/index.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
'use strict'
2+
3+
const {load: loadJSON} = require('json-future')
4+
const {resolve} = require('path')
5+
const {promisify} = require('util')
6+
const should = require('should')
7+
const fs = require('fs')
8+
9+
const getMetaData = require('../../..')
10+
const readFile = promisify(fs.readFile)
11+
12+
it('atlasobscura', async () => {
13+
const html = await readFile(resolve(__dirname, 'input.html'))
14+
const json = await loadJSON(resolve(__dirname, 'output.json'))
15+
const metadata = await getMetaData({html})
16+
should(metadata).be.eql(json)
17+
})

0 commit comments

Comments
 (0)