Skip to content

Commit

Permalink
Df tests, version dump
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Oct 24, 2017
1 parent 8b7192f commit 936d55d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1262,7 +1262,7 @@ Docker.prototype.ping = function(callback) {
* get usage data information
* @param {Function} callback Callback
*/
Docker.prototype.systemDf = function(callback) {
Docker.prototype.df = function(callback) {
var self = this;
var optsf = {
path: '/system/df',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dockerode",
"description": "Docker Remote API module.",
"version": "2.5.2",
"version": "2.5.3",
"author": "Pedro Dias <[email protected]>",
"maintainers": [
"apocas <[email protected]>"
Expand Down
14 changes: 14 additions & 0 deletions test/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,20 @@ describe("#docker", function() {
});
});

describe("#df", function() {
it("should return df", function(done) {
this.timeout(5000);

function handler(err, data) {
expect(err).to.be.null;
expect(data).to.be.ok;
done();
}

docker.df(handler);
});
});

describe("#searchImages", function() {
it("should return search results", function(done) {
this.timeout(120000);
Expand Down

0 comments on commit 936d55d

Please sign in to comment.