From 01667083cdb9cf9a87b15584aa79090f2ff4f37f Mon Sep 17 00:00:00 2001 From: William Grant Date: Tue, 21 May 2024 20:13:06 +1000 Subject: [PATCH] fix: there is already a unit test for initials --- ts/test/components/AvatarPlaceHolder_test.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ts/test/components/AvatarPlaceHolder_test.tsx b/ts/test/components/AvatarPlaceHolder_test.tsx index f5778f742..7139ba555 100644 --- a/ts/test/components/AvatarPlaceHolder_test.tsx +++ b/ts/test/components/AvatarPlaceHolder_test.tsx @@ -67,7 +67,7 @@ describe('AvatarPlaceHolder', () => { expect(el.innerHTML).to.equal(el2.innerHTML); result.unmount(); }); - it('should render the background color using COLORS.PRIMARY with the correct order', async () => { + it('should render the background color using the primary colors in the correct order', async () => { const testPubkeys = [ '0541214ef26572066f0535140b1d6d021218299321c6001e2cdcaaa8cd5c9382fc', // green '0541214ef26572066f0535140b1d6d021218299321c6001e2cdcaaa8cd5c9382fa', // blue @@ -123,6 +123,4 @@ describe('AvatarPlaceHolder', () => { await testBackgroundColor(testPubkeys[5], COLORS.PRIMARY.ORANGE); await testBackgroundColor(testPubkeys[6], COLORS.PRIMARY.RED); }); - - // TODO given a name it should render the correct initials });