Skip to content

Commit 9ce64b1

Browse files
author
liuyt
committed
test3
1 parent b7407d4 commit 9ce64b1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.travis.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
language: node_js
2-
os:
3-
- linux
42
node_js:
53
- "6"
64
sudo: enabled
@@ -10,7 +8,9 @@ cache:
108
branches:
119
only:
1210
- dev
13-
11+
12+
before_script:
13+
- sudo chmod 777 /home/travis/build/iliuyt/nssh/bin/nssh
1414
script:
1515
- npm run coverage
1616

test/nssh.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ describe('NSSH testing:', function () {
5252
describe('#Init Command', function () {
5353
let successStr = '✔ ssh key store initialized!';
5454
it('nssh initialized success', function (done) {
55-
spawn('ls', [], null, function (content) {
56-
// assert.equal(indexofArray(content, successStr), true);
57-
// assert.equal(shell.test('-d', cts.NSSHPath), true);
55+
spawn(nsshPath, ['init'], null, function (content) {
56+
assert.equal(indexofArray(content, successStr), true);
57+
assert.equal(shell.test('-d', cts.NSSHPath), true);
5858
done();
5959
})
6060
})

0 commit comments

Comments
 (0)