UNPKG

521 BJavaScriptView Raw
1/**
2 * Test for bin.
3 * Runs with mocha.
4 */
5
6'use strict'
7
8const bin = require.resolve('../bin/apeman-dply')
9const cp = require('child_process')
10const assert = require('assert')
11
12describe('bin-test', function () {
13 this.timeout(32000)
14 before((done) => {
15 done()
16 })
17
18 after((done) => {
19 done()
20 })
21
22 it('Show help.', (done) => {
23 let cmd = [
24 bin,
25 '-h'
26 ].join(' ')
27 cp.exec(cmd, (err) => {
28 assert.ifError(err)
29 done()
30 })
31 })
32
33})
34/* global describe, before, after, it */