Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: added some more tests
  • Loading branch information
Denny09310 committed Sep 16, 2025
commit d4ef66e7786818e367ace88d925c01dd8feb0777
27 changes: 27 additions & 0 deletions tests/LumexUI.Tests/Components/User/UserTests.razor
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,31 @@

action.Should().NotThrow();
}

[Fact]
public void ShouldRenderCorrectlyWithDescription()
{
var action = () => Render(
@<LumexUser Name="John Doe" Description="Software Engeneer" />
);

action.Should().NotThrow();
}

[Fact]
public void ShouldRenderDescriptionContent()
{
var cut = Render(
@<LumexUser Name="John Doe" data-testid="user-root">
<DescriptionContent>
<LumexLink External Href="https://github.com/desmondinho" data-testid="user-link">
@@desmondinho
</LumexLink>
</DescriptionContent>
</LumexUser>
);

cut.FindByTestId("user-root").Should().NotBeNull();
cut.FindByTestId("user-link").Should().NotBeNull();
}
}
Loading