feat(tests): add comprehensive unit tests for various components including AboutPage, CallPage, and MessagesPage
This commit is contained in:
13
tests/frontend/GlobalState.test.js
Normal file
13
tests/frontend/GlobalState.test.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import { describe, it, expect } from "vitest";
|
||||
import globalState from "@/js/GlobalState";
|
||||
|
||||
describe("GlobalState.js", () => {
|
||||
it("has initial values", () => {
|
||||
expect(globalState.unreadConversationsCount).toBe(0);
|
||||
});
|
||||
|
||||
it("can be updated", () => {
|
||||
globalState.unreadConversationsCount = 5;
|
||||
expect(globalState.unreadConversationsCount).toBe(5);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user