Update avatar component
This commit is contained in:
@@ -1957,7 +1957,8 @@ describe("Helper functions", () => {
|
||||
it("stringAvatar returns correct props", () => {
|
||||
const result = stringAvatar("Alice");
|
||||
expect(result.children).toBe("A");
|
||||
expect(result.style.backgroundColor).toMatch(/^#/);
|
||||
expect(result.color).toBeDefined();
|
||||
expect(typeof result.color).toBe("string");
|
||||
});
|
||||
|
||||
it("InfoRow renders text and link if url is valid", () => {
|
||||
|
||||
Reference in New Issue
Block a user