Skip to content

Commit

Permalink
Inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
apocas committed Mar 13, 2017
1 parent 530c78f commit be7e3cb
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 35 deletions.
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.3.6",
"version": "2.4.0",
"author": "Pedro Dias <[email protected]>",
"maintainers": [
"apocas <[email protected]>"
Expand Down
6 changes: 0 additions & 6 deletions test/container.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ describe("#container", function() {
});

describe("#inspect", function() {
it("should inspect a container without callback", function(done) {
var container = docker.getContainer(testContainer);
expect(container.inspect()).to.be.a('string');
done();
});

it("should inspect a container", function(done) {
var container = docker.getContainer(testContainer);

Expand Down
8 changes: 1 addition & 7 deletions test/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,7 @@ var testImage = 'ubuntu:14.04';
describe("#image", function() {

describe("#inspect", function() {
it("should inspect a image without callback", function(done) {
var image = docker.getImage(testImage);
expect(image.inspect()).to.be.a('string');
done();
});

it("should inspect a image", function(done) {
it("should inspect an image", function(done) {
var image = docker.getImage(testImage);

function handler(err, data) {
Expand Down
6 changes: 0 additions & 6 deletions test/networks.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,6 @@ describe("#networks", function() {
});

describe("#inspect", function() {
it("should inspect a network without callback", function(done) {
var network = testNetwork;
expect(network.inspect()).to.be.a('string');
done();
});

it("should inspect a network", function(done) {
var network = testNetwork;

Expand Down
15 changes: 0 additions & 15 deletions test/swarm.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,6 @@ describe("#swarm", function() {
docker.listServices(handler);
});

it("should inspect a service without callback", function(done) {
expect(service.inspect()).to.be.a('string');
done();
});

it("should inspect service", function(done) {
function handler(err, data) {
expect(err).to.be.null;
Expand Down Expand Up @@ -273,11 +268,6 @@ describe("#swarm", function() {
});

if (task) {
it("should inspect a task without callback", function(done) {
expect(task.inspect()).to.be.a('string');
done();
});

it("should inspect task", function(done) {
function handler(err, data) {
expect(err).to.be.null;
Expand Down Expand Up @@ -306,11 +296,6 @@ describe("#swarm", function() {
docker.listNodes(handler);
});

it("should inspect a node without callback", function(done) {
expect(node.inspect()).to.be.a('string');
done();
});

it("should inspect node", function(done) {
function handler(err, data) {
expect(err).to.be.null;
Expand Down

0 comments on commit be7e3cb

Please sign in to comment.