Skip to content

Commit

Permalink
chore: fix flappy tests (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Oct 6, 2019
1 parent 2a806ee commit 5437c60
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/v8-to-istanbul.js
Expand Up @@ -11,7 +11,7 @@ const sourcemap = require('source-map')
require('tap').mochaGlobals()
require('should')

describe('V8ToIstanbul', () => {
describe('V8ToIstanbul', async () => {
describe('constructor', () => {
it('creates line instance for each line in V8ToIstanbul', async () => {
const v8ToIstanbul = new V8ToIstanbul(
Expand Down Expand Up @@ -65,12 +65,12 @@ ${'//'}${'#'} sourceMappingURL=data:application/json;base64,${base64Sourcemap}
// assertions. the original scripts can be found in the
// fixtures/scripts folder.
const fixtureRoot = path.resolve(__dirname, './fixtures')
readdirSync(fixtureRoot).forEach(file => {
for (const file of readdirSync(fixtureRoot)) {
const fixturePath = path.resolve(fixtureRoot, file)
const stats = lstatSync(fixturePath)
if (stats.isFile()) {
const fixture = require(fixturePath)
runFixture(fixture)
await runFixture(fixture)
}
})
}
})

0 comments on commit 5437c60

Please sign in to comment.