chore: migrate to oxlint and oxfmt
Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
@@ -5,9 +5,7 @@ import { formatError, normalizeVoiceWakeTriggers } from "./server-utils.js";
|
||||
describe("normalizeVoiceWakeTriggers", () => {
|
||||
test("returns defaults when input is empty", () => {
|
||||
expect(normalizeVoiceWakeTriggers([])).toEqual(defaultVoiceWakeTriggers());
|
||||
expect(normalizeVoiceWakeTriggers(null)).toEqual(
|
||||
defaultVoiceWakeTriggers(),
|
||||
);
|
||||
expect(normalizeVoiceWakeTriggers(null)).toEqual(defaultVoiceWakeTriggers());
|
||||
});
|
||||
|
||||
test("trims and limits entries", () => {
|
||||
@@ -22,9 +20,7 @@ describe("formatError", () => {
|
||||
});
|
||||
|
||||
test("handles status/code", () => {
|
||||
expect(formatError({ status: 500, code: "EPIPE" })).toBe(
|
||||
"status=500 code=EPIPE",
|
||||
);
|
||||
expect(formatError({ status: 500, code: "EPIPE" })).toBe("status=500 code=EPIPE");
|
||||
expect(formatError({ status: 404 })).toBe("status=404 code=unknown");
|
||||
expect(formatError({ code: "ENOENT" })).toBe("status=unknown code=ENOENT");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user