UNPKG

587 BJavaScriptView Raw
1/**
2 * Test case for scff.
3 * Runs with mocha.
4 */
5'use strict'
6
7const scff = require('../lib/scff.js')
8const assert = require('assert')
9const co = require('co')
10const apemanScff = require('apeman-scff')
11
12describe('scff', () => {
13 let tmpDir = `${__dirname}/../tmp`
14
15 before(() => co(function * () {
16 }))
17
18 after(() => co(function * () {
19 }))
20
21 it('Scff', () => co(function * () {
22 assert.ok(scff)
23 yield apemanScff(scff, `${tmpDir}/my-awesome-project`, {
24 silent: false,
25 force: true,
26 straight: true
27 })
28 }))
29})
30
31/* global describe, before, after, it */