We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da392f6 commit d2a8f22Copy full SHA for d2a8f22
test/web/atlasobscura/index.js
@@ -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