Skip to content

Commit 936d55d

Browse files
committed
Df tests, version dump
1 parent 8b7192f commit 936d55d

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

lib/docker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ Docker.prototype.ping = function(callback) {
12621262
* get usage data information
12631263
* @param {Function} callback Callback
12641264
*/
1265-
Docker.prototype.systemDf = function(callback) {
1265+
Docker.prototype.df = function(callback) {
12661266
var self = this;
12671267
var optsf = {
12681268
path: '/system/df',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dockerode",
33
"description": "Docker Remote API module.",
4-
"version": "2.5.2",
4+
"version": "2.5.3",
55
"author": "Pedro Dias <[email protected]>",
66
"maintainers": [
77
"apocas <[email protected]>"

test/docker.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,20 @@ describe("#docker", function() {
515515
});
516516
});
517517

518+
describe("#df", function() {
519+
it("should return df", function(done) {
520+
this.timeout(5000);
521+
522+
function handler(err, data) {
523+
expect(err).to.be.null;
524+
expect(data).to.be.ok;
525+
done();
526+
}
527+
528+
docker.df(handler);
529+
});
530+
});
531+
518532
describe("#searchImages", function() {
519533
it("should return search results", function(done) {
520534
this.timeout(120000);

0 commit comments

Comments
 (0)