refactor: update all

This commit is contained in:
openstappsbot
2021-09-06 07:10:31 +00:00
committed by Rainer Killinger
parent d27bf7ea94
commit aeebbf9656
3 changed files with 830 additions and 1657 deletions

View File

@@ -236,14 +236,17 @@ upstream 1__0___d_ {
await getContainers();
return false;
} catch (e) {
if (e.message.startsWith('No')) {
if ((e as Error).message.startsWith('No')) {
// Result, if docker is installed
expect(e.message).to.equal(`No running docker containers found.
expect((e as Error).message).to.equal(`No running docker containers found.
Please check if docker is running and Node.js can access the docker socket (/var/run/docker.sock)`);
} else {
// Result, if docker is not installed
expect(e.message).to.equal(`connect ENOENT /var/run/docker.sock`);
expect([
new Error(`connect ENOENT /var/run/docker.sock`).message,
new Error('connect EACCES /var/run/docker.sock').message,
]).to.include((e as Error).message);
}
}
@@ -258,7 +261,7 @@ Please check if docker is running and Node.js can access the docker socket (/var
await getTemplateView(containersWithSameVersion);
return false;
} catch (e) {
expect(e.message).to.equal(
expect((e as Error).message).to.equal(
`Multiple backends for one version found.`);
}