Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #106 from ipfs/tests/bring-init-tests-in
Browse files Browse the repository at this point in the history
merge tests
  • Loading branch information
daviddias committed Apr 3, 2016
2 parents 448ffe8 + 66ae491 commit 77a11c3
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions tests/test-cli/test-init.js → test/cli-tests/test-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,26 +59,5 @@ describe('init', function () {
done()
})
})

it('force', (done) => {
nexpect.spawn('node', [process.cwd() + '/src/cli/bin.js', 'init', '--bits', '64', '--force'])
.run((err, stdout, exitcode) => {
expect(err).to.not.exist
expect(exitcode).to.equal(0)

nexpect.spawn('node', [process.cwd() + '/src/cli/bin.js', 'init', '--bits', '64'])
.run((err, stdout, exitcode) => {
expect(err).to.not.exist
expect(exitcode).to.equal(1)

nexpect.spawn('node', [process.cwd() + '/src/cli/bin.js', 'init', '--bits', '64', '--force'])
.run((err, stdout, exitcode) => {
expect(err).to.not.exist
expect(exitcode).to.equal(0)
done()
})
})
})
})
})

0 comments on commit 77a11c3

Please sign in to comment.