Fix lint.
This commit is contained in:
parent
04cb51ed9c
commit
d21cfc0f34
|
@ -37,10 +37,6 @@ function getTestcontainers(): ContainerInfo[] {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeContainer(container: ContainerInfo) {
|
|
||||||
execSync(`docker rm ${container.ID}`)
|
|
||||||
}
|
|
||||||
|
|
||||||
export function getContainerByImage(image: string) {
|
export function getContainerByImage(image: string) {
|
||||||
const containers = getTestcontainers().filter(x => x.Image.startsWith(image))
|
const containers = getTestcontainers().filter(x => x.Image.startsWith(image))
|
||||||
if (containers.length > 1) {
|
if (containers.length > 1) {
|
||||||
|
@ -53,10 +49,6 @@ export function getContainerByImage(image: string) {
|
||||||
return containers[0]
|
return containers[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
function getContainerByName(name: string) {
|
|
||||||
return getTestcontainers().find(x => x.Names === name)
|
|
||||||
}
|
|
||||||
|
|
||||||
export function getContainerById(id: string) {
|
export function getContainerById(id: string) {
|
||||||
return getTestcontainers().find(x => x.ID === id)
|
return getTestcontainers().find(x => x.ID === id)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue