Skip to content

Commit c1c3e79

Browse files
committed
test: clarify control ui performance event assertion
1 parent 3e53b19 commit c1c3e79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎ui/src/ui/control-ui-performance.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ describe("startControlUiResponsivenessObserver", () => {
223223
expect(
224224
host.eventLogBuffer.filter((entry) => entry.event === "control-ui.longtask"),
225225
).toHaveLength(50);
226-
expect(host.eventLogBuffer.some((entry) => entry.event === "gateway.event")).toBe(true);
226+
expect(host.eventLogBuffer.map((entry) => entry.event)).toContain("gateway.event");
227227
});
228228

229229
it("returns null when responsiveness entries are unsupported or observe fails", () => {

0 commit comments

Comments
 (0)