From 05176b10b14bcd1cf52905ec9828efdd105583a1 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Mon, 29 Jun 2026 14:32:49 +0200 Subject: [PATCH] Switch to jest-style assertions to please oxlint Signed-off-by: Johannes Marbach --- src/utils/redact.test.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/utils/redact.test.ts b/src/utils/redact.test.ts index 6e9713faf..977b5ebc0 100644 --- a/src/utils/redact.test.ts +++ b/src/utils/redact.test.ts @@ -10,26 +10,26 @@ import { expect, test } from "vitest"; import { redact } from "./redact"; test("empty object", () => { - expect(redact({})).to.deep.equal({}); + expect(redact({})).toEqual({}); }); test("no keys", () => { - expect(redact({ foo: "bar" })).to.deep.equal({ foo: "bar" }); + expect(redact({ foo: "bar" })).toEqual({ foo: "bar" }); }); test("redact one key", () => { - expect(redact({ foo: "bar" }, "foo")).to.deep.equal({ foo: "" }); + expect(redact({ foo: "bar" }, "foo")).toEqual({ foo: "" }); }); test("redact two keys", () => { - expect(redact({ foo: "bar", bar: "foo" }, "foo", "bar")).to.deep.equal({ + expect(redact({ foo: "bar", bar: "foo" }, "foo", "bar")).toEqual({ foo: "", bar: "", }); }); test("no redaction of unrelated keys", () => { - expect(redact({ foo: "bar", bar: "foo" }, "foo")).to.deep.equal({ + expect(redact({ foo: "bar", bar: "foo" }, "foo")).toEqual({ foo: "", bar: "foo", }); @@ -38,20 +38,20 @@ test("no redaction of unrelated keys", () => { test("no redaction of missing keys", () => { expect( redact({ foo: "bar" } as { foo: string; bar: string | undefined }, "bar"), - ).to.deep.equal({ + ).toEqual({ foo: "bar", }); }); test("no redaction of null values", () => { - expect(redact({ foo: "bar", bar: null }, "bar")).to.deep.equal({ + expect(redact({ foo: "bar", bar: null }, "bar")).toEqual({ foo: "bar", bar: null, }); }); test("no redaction of undefined values", () => { - expect(redact({ foo: "bar", bar: undefined }, "bar")).to.deep.equal({ + expect(redact({ foo: "bar", bar: undefined }, "bar")).toEqual({ foo: "bar", bar: undefined, });