Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Jul 7, 2017
1 parent aea5787 commit cef0f1e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ const {

const getMetaData = require('..')

const fixtures = resolveFixturesFolder()

fixtures.forEach(fixture => {
test(fixture, async t => {
const {html, json} = await loadFixture(fixture)
const metadata = await getMetaData(html)
t.deepEqual(metadata, json)
resolveFixturesFolder()
.forEach(fixture => {
test(fixture, async t => {
const {html, json} = await loadFixture(fixture)
const metadata = await getMetaData(html)
t.deepEqual(metadata, json)
})
})
})

0 comments on commit cef0f1e

Please sign in to comment.