Skip to content

Commit 8301e72

Browse files
committed
Fix Test
1 parent 42ac271 commit 8301e72

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/CodeBeam.MudBlazor.Extensions.UnitTests/Components/CodeViewerTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using AwesomeAssertions;
22
using Bunit;
3+
using Moq;
34
using MudExtensions.UnitTests.Extensions;
45

56
namespace MudExtensions.UnitTests.Components;
@@ -61,13 +62,12 @@ public void CodeViewer_Should_Call_Highlight_On_FirstRender()
6162
{
6263
var jsMock = Context.JSInterop.SetupVoid("MudCode.highlight", _ => true);
6364

64-
var comp = Context.Render<MudCodeViewer>(p => p
65-
.Add(x => x.Code, "test")
66-
);
65+
Context.Render<MudCodeViewer>(p => p.Add(x => x.Code, "test"));
6766

68-
jsMock.VerifyInvoke("MudCode.highlight");
67+
jsMock.Invocations.Count.Should().BeGreaterThanOrEqualTo(1);
6968
}
7069

70+
7171
[Test]
7272
public void CodeViewer_Language_Change_Should_Update_Class()
7373
{

0 commit comments

Comments
 (0)