feat: animate sidebar and refine account menu with Google avatars
This commit is contained in:
@@ -12,10 +12,11 @@ test("profile and workspace reads both start before either completes", async ()
|
||||
});
|
||||
});
|
||||
assert.deepEqual(calls, ["profile", "workspaces"]);
|
||||
resolve.profile({ id: "user" });
|
||||
resolve.profile({ id: "user", avatar_url: "https://lh3.googleusercontent.com/test-avatar" });
|
||||
resolve.workspaces({ items: [{ id: "space", name: "个人空间" }] });
|
||||
const result = await pending;
|
||||
assert.equal(result.profile.id, "user");
|
||||
assert.equal(result.profile.avatar_url, "https://lh3.googleusercontent.com/test-avatar");
|
||||
assert.equal(result.workspaces[0].id, "space");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user