fix(core): update

This commit is contained in:
2022-10-17 09:36:35 +02:00
parent 4569bffc37
commit daa97c68d9
23 changed files with 4314 additions and 10732 deletions

View File

@ -1,11 +1,11 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as docker from '../ts/index';
import * as docker from '../ts/index.js';
let testDockerHost: docker.DockerHost;
tap.test('should create a new Dockersock instance', async () => {
testDockerHost = new docker.DockerHost('http://unix:/var/run/docker.sock:');
return expect(testDockerHost).to.be.instanceof(docker.DockerHost);
return expect(testDockerHost).toBeInstanceOf(docker.DockerHost);
});
tap.test('should create a docker swarm', async () => {
@ -28,8 +28,8 @@ tap.test('should create a network', async () => {
const newNetwork = await docker.DockerNetwork.createNetwork(testDockerHost, {
Name: 'webgateway',
});
expect(newNetwork).to.be.instanceOf(docker.DockerNetwork);
expect(newNetwork.Name).to.equal('webgateway');
expect(newNetwork).toBeInstanceOf(docker.DockerNetwork);
expect(newNetwork.Name).toEqual('webgateway');
});
tap.test('should remove a network', async () => {
@ -43,7 +43,7 @@ tap.test('should pull an image from imagetag', async () => {
imageUrl: 'hosttoday/ht-docker-node',
imageTag: 'alpine',
});
expect(image).to.be.instanceOf(docker.DockerImage);
expect(image).toBeInstanceOf(docker.DockerImage);
console.log(image);
});