UNPKG

564 BJavaScriptView Raw
1/**
2 * Test case for coverage.
3 * Runs with mocha.
4 */
5'use strict'
6
7const coverage = require('../lib/coverage.js')
8const assert = require('assert')
9const co = require('co')
10
11describe('coverage', function () {
12 this.timeout(3000)
13
14 before(() => co(function * () {
15
16 }))
17
18 after(() => co(function * () {
19
20 }))
21
22 it('Coverage', () => co(function * () {
23 yield coverage(
24 'mocks/*test*.js',
25 {
26 cwd: `${__dirname}/../misc`,
27 dir: `${__dirname}/../tmp/testing-coverage`
28 }
29 )
30 }))
31})
32
33/* global describe, before, after, it */