Skip to content

Commit be7e3cb

Browse files
committed
Inspect
1 parent 530c78f commit be7e3cb

File tree

5 files changed

+2
-35
lines changed

5 files changed

+2
-35
lines changed

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.3.6",
4+
"version": "2.4.0",
55
"author": "Pedro Dias <petermdias@gmail.com>",
66
"maintainers": [
77
"apocas <petermdias@gmail.com>"

test/container.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ describe("#container", function() {
2626
});
2727

2828
describe("#inspect", function() {
29-
it("should inspect a container without callback", function(done) {
30-
var container = docker.getContainer(testContainer);
31-
expect(container.inspect()).to.be.a('string');
32-
done();
33-
});
34-
3529
it("should inspect a container", function(done) {
3630
var container = docker.getContainer(testContainer);
3731

test/image.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,7 @@ var testImage = 'ubuntu:14.04';
88
describe("#image", function() {
99

1010
describe("#inspect", function() {
11-
it("should inspect a image without callback", function(done) {
12-
var image = docker.getImage(testImage);
13-
expect(image.inspect()).to.be.a('string');
14-
done();
15-
});
16-
17-
it("should inspect a image", function(done) {
11+
it("should inspect an image", function(done) {
1812
var image = docker.getImage(testImage);
1913

2014
function handler(err, data) {

test/networks.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,6 @@ describe("#networks", function() {
7878
});
7979

8080
describe("#inspect", function() {
81-
it("should inspect a network without callback", function(done) {
82-
var network = testNetwork;
83-
expect(network.inspect()).to.be.a('string');
84-
done();
85-
});
86-
8781
it("should inspect a network", function(done) {
8882
var network = testNetwork;
8983

test/swarm.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,6 @@ describe("#swarm", function() {
187187
docker.listServices(handler);
188188
});
189189

190-
it("should inspect a service without callback", function(done) {
191-
expect(service.inspect()).to.be.a('string');
192-
done();
193-
});
194-
195190
it("should inspect service", function(done) {
196191
function handler(err, data) {
197192
expect(err).to.be.null;
@@ -273,11 +268,6 @@ describe("#swarm", function() {
273268
});
274269

275270
if (task) {
276-
it("should inspect a task without callback", function(done) {
277-
expect(task.inspect()).to.be.a('string');
278-
done();
279-
});
280-
281271
it("should inspect task", function(done) {
282272
function handler(err, data) {
283273
expect(err).to.be.null;
@@ -306,11 +296,6 @@ describe("#swarm", function() {
306296
docker.listNodes(handler);
307297
});
308298

309-
it("should inspect a node without callback", function(done) {
310-
expect(node.inspect()).to.be.a('string');
311-
done();
312-
});
313-
314299
it("should inspect node", function(done) {
315300
function handler(err, data) {
316301
expect(err).to.be.null;

0 commit comments

Comments
 (0)