You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
696 B
TypeScript
22 lines
696 B
TypeScript
/* eslint-disable import/no-extraneous-dependencies */
|
|
import chai from 'chai';
|
|
import chaiDom from 'chai-dom';
|
|
|
|
chai.use(chaiDom);
|
|
|
|
describe('AvatarPlaceHolder', () => {
|
|
it('should render', async () => {
|
|
// ARRANGE
|
|
// TODO have proper values
|
|
// render(<AvatarPlaceHolder diameter={32} name={'0'} pubkey={'0xasdfgggjkdks'} />);
|
|
// ACT
|
|
// TODO proper actions
|
|
// await userEvent.click(screen.getByText('0xasdfgggjkdks'));
|
|
// await screen.findByRole('heading');
|
|
// ASSERT
|
|
// TODO proper expectations
|
|
// expect(screen.getByRole('heading')).text('hello there');
|
|
// expect(screen.getByRole('button')).to.have.attribute('disabled').match('true');
|
|
});
|
|
});
|