Free, Open Source, Self-Hosted WhatsApp API Gateway
TypeScript apibotgatewayself-hostedwhatsappwhatsapp-apiwhatsapp-automationwhatsapp-botwhatsapp-gatewaywhatsapp-gateway-apiwhatsapp-webwhatsapp-web-api
test: satisfy lint in the docker and uninstaller specs
Yudhi Armyndharis0cc2bb5dff32
diff --git a/src/core/plugins/plugin-uninstaller.spec.ts b/src/core/plugins/plugin-uninstaller.spec.tsindex 10fdc3dfc..ae7bee8c0 100644--- a/src/core/plugins/plugin-uninstaller.spec.ts+++ b/src/core/plugins/plugin-uninstaller.spec.ts@@ -173,8 +173,7 @@ describe('PluginUninstaller — uninstall', () => {seedEntry(storage, 'relay');const config = { get: (k: string) => (k === 'plugins.dir' ? pluginsDir : tmpDir) } as unknown as ConfigService;const seen: Array<{ onDisk: boolean; running: boolean }> = [];- let withRelease!: ReturnType<typeof makeUninstaller>;- withRelease = makeUninstaller(config, storage, pluginsDir, () => {+ const withRelease: ReturnType<typeof makeUninstaller> = makeUninstaller(config, storage, pluginsDir, () => {seen.push({onDisk: fs.existsSync(dir) && storage.getPluginEntry('relay') !== undefined,running: withRelease.plugins.has('relay'),diff --git a/src/modules/docker/docker.service.spec.ts b/src/modules/docker/docker.service.spec.tsindex 82ade3130..26c2373ce 100644--- a/src/modules/docker/docker.service.spec.ts+++ b/src/modules/docker/docker.service.spec.ts@@ -277,7 +277,7 @@ describe('prestartBuiltinDatabase', () => {expect(docker.listContainers).toHaveBeenCalledWith({all: true,filters: { label: ['com.openwa.service=database'] },- abortSignal: expect.any(AbortSignal),+ abortSignal: expect.any(AbortSignal) as unknown,});expect(container.start).toHaveBeenCalledTimes(1);});@@ -414,7 +414,7 @@ describe('DockerService.getContainerByService label match and guard rails', () =expect(listContainers).toHaveBeenCalledWith({all: true,filters: { label: ['com.openwa.service=database'] },- abortSignal: expect.any(AbortSignal),+ abortSignal: expect.any(AbortSignal) as unknown,});expect(getContainer).toHaveBeenCalledWith('label-hit-1');expect(result).toEqual({ id: 'label-hit-1' });