chore(babysit): cleanup slop
This commit is contained in:
parent
ef24ea4ca0
commit
99c38162a6
8 changed files with 3065 additions and 6002 deletions
|
|
@ -1,18 +0,0 @@
|
|||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { mtp } from "@tensamin/shared/data";
|
||||
import { onlineStatusOptions } from "./status-options";
|
||||
|
||||
describe("sidebar status requests", () => {
|
||||
it.each(onlineStatusOptions)("sends $label as $value", ({ value }) => {
|
||||
expect(mtp.SetUserState.request.parse({ UserState: value })).toEqual({
|
||||
UserState: value,
|
||||
});
|
||||
});
|
||||
|
||||
it("keeps status text on the profile operation", () => {
|
||||
expect(mtp.ChangeUserData.request.parse({ Status: "At lunch" })).toEqual({
|
||||
Status: "At lunch",
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
import { describe, expect, it } from "vitest";
|
||||
|
||||
import { onlineStatusOptions } from "./status-options";
|
||||
|
||||
describe("status options", () => {
|
||||
it("uses the exact client protocol values", () => {
|
||||
expect(onlineStatusOptions).toEqual([
|
||||
{ label: "Online", value: "user_online" },
|
||||
{ label: "Idle", value: "user_idle" },
|
||||
{ label: "Do not disturb", value: "user_dnd" },
|
||||
{ label: "Away", value: "user_wc" },
|
||||
{ label: "Offline", value: "user_invisible" },
|
||||
]);
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue