add some tests

This commit is contained in:
2016-06-01 02:48:38 +02:00
parent 9a96bbd266
commit 904129706c
5 changed files with 50 additions and 4 deletions

View File

@@ -9,8 +9,25 @@ describe("smartssh",function(){
testSshInstance = new smartssh.SshInstance();
testSshInstance.should.be.instanceof(smartssh.SshInstance);
});
it("should accept a new SshKey object",function(){
testSshInstance.addKey(new smartssh.SshKey({
public:"somePublicKey",
private:"somePrivateKey",
host:"gitlab.com"
}));
testSshInstance.addKey(new smartssh.SshKey({
public:"somePublicKey",
private:"somePrivateKey",
host:"bitbucket.org"
}));
testSshInstance.addKey(new smartssh.SshKey({
public:"somePublicKey",
private:"somePrivateKey",
host:"github.com"
}));
});
it("should return an array of sshKeys",function(){
})
testSshInstance.getKeys();
});
})
})