mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-11 08:38:24 +00:00
test(ui): keep member budget assertion within lint budget
This commit is contained in:
parent
26ca426393
commit
3425e42fa5
1 changed files with 3 additions and 2 deletions
|
|
@ -30,12 +30,13 @@ describe("member budget window requests", () => {
|
|||
const fetchMock = vi.fn().mockResolvedValue(Response.json({}));
|
||||
vi.stubGlobal("fetch", fetchMock);
|
||||
await Networking.teamMemberUpdateCall("test-session", "team", { user_id: "member", role: "user", budget_limits });
|
||||
expect(JSON.parse(fetchMock.mock.calls[0][1].body)).toEqual({
|
||||
const expected = {
|
||||
team_id: "team",
|
||||
user_id: "member",
|
||||
role: "user",
|
||||
budget_limits,
|
||||
});
|
||||
};
|
||||
expect(JSON.parse(fetchMock.mock.calls[0][1].body)).toEqual(expected);
|
||||
});
|
||||
|
||||
it("should omit windows when an older caller does not supply them", async () => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue