mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 19:01:47 +03:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
+3
-1
@@ -83,7 +83,9 @@ describe("jidToE164", () => {
|
||||
.spyOn(fs, "readFileSync")
|
||||
// biome-ignore lint/suspicious/noExplicitAny: forwarding to native signature
|
||||
.mockImplementation((path: any, encoding?: any) => {
|
||||
if (path === mappingPath) return `"5551234"`;
|
||||
if (path === mappingPath) {
|
||||
return `"5551234"`;
|
||||
}
|
||||
return original(path, encoding);
|
||||
});
|
||||
expect(jidToE164("123@lid")).toBe("+5551234");
|
||||
|
||||
Reference in New Issue
Block a user