Skip to content

Commit

Permalink
[modify] update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Houfeng committed Aug 30, 2017
1 parent 62452d9 commit 217c058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cli-init.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ const fs = require('fs');
describe('cli', function () {

it('#init', async function () {
this.timeout(12000);
this.timeout(20000);
process.chdir(path.resolve(__dirname, './demo2'));
let dirname = path.resolve(__dirname, './demo2/.dawn/');
let filename = path.resolve(__dirname, './demo2/.dawn/pipe.yml');
if (fs.existsSync(filename)) fs.unlinkSync(filename);
if (fs.existsSync(dirname)) fs.rmdirSync(dirname);
expect(fs.existsSync(filename)).to.be.equal(false);
cli.parse(['node', 'dn', 'init', '-t', 'dn-template-unit-demo']);
await sleep(10000);
await sleep(18000);
expect(fs.existsSync(filename)).to.be.equal(true);
});

Expand Down

0 comments on commit 217c058

Please sign in to comment.