Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Jul 21, 2020
1 parent ff05d49 commit 4a96752
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "docker-modem",
"description": "Docker remote API network layer module.",
"version": "2.1.3",
"version": "2.1.4",
"author": "Pedro Dias <[email protected]>",
"maintainers": [
"apocas <[email protected]>"
Expand Down
18 changes: 18 additions & 0 deletions test/modem_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ describe('Modem', function () {
assert.strictEqual(modem.socketPath, defaultSocketPath);
});

it('should use specific cert, key and ca', function () {
var ca = 'caaaaa';
var cert = 'certtttt';
var key = 'keyyyyy';
var modem = new Modem({
version: 'v1.39',
host: '127.0.0.1',
port: 2376,
ca,
cert,
key
});

assert.strictEqual(ca, modem.ca);
assert.strictEqual(cert, modem.cert);
assert.strictEqual(key, modem.key);
});

it('shouldn\'t default to default socket path', function () {
var modem = new Modem({
protocol: 'http',
Expand Down

0 comments on commit 4a96752

Please sign in to comment.