mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-24 17:01:26 +03:00
c379191f80
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
13 lines
467 B
TypeScript
13 lines
467 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { isAddressInUseError } from "./gmail-watcher.js";
|
|
|
|
describe("gmail watcher", () => {
|
|
it("detects address already in use errors", () => {
|
|
expect(isAddressInUseError("listen tcp 127.0.0.1:8788: bind: address already in use")).toBe(
|
|
true,
|
|
);
|
|
expect(isAddressInUseError("EADDRINUSE: address already in use")).toBe(true);
|
|
expect(isAddressInUseError("some other error")).toBe(false);
|
|
});
|
|
});
|