Skip to content

Commit fd9314f

Browse files
committed
Fix test and linting
1 parent 07d3323 commit fd9314f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

library/agent/context/user.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ t.test("it logs when setUser has invalid input", async () => {
119119
// @ts-expect-error Testing invalid input
120120
setUser(null);
121121
t.same(logger.getMessages(), [
122-
"setUser(...) expects an object with 'id' and 'name' properties, found object instead.",
122+
"setUser(...) can not be called with null or undefined.",
123123
]);
124124
});
125125

library/agent/context/user.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable max-lines-per-function */
12
import { isPlainObject } from "../../helpers/isPlainObject";
23
import { getInstance } from "../AgentSingleton";
34
import type { User } from "../Context";

0 commit comments

Comments
 (0)