We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42ac271 commit 8301e72Copy full SHA for 8301e72
1 file changed
tests/CodeBeam.MudBlazor.Extensions.UnitTests/Components/CodeViewerTests.cs
@@ -1,5 +1,6 @@
1
using AwesomeAssertions;
2
using Bunit;
3
+using Moq;
4
using MudExtensions.UnitTests.Extensions;
5
6
namespace MudExtensions.UnitTests.Components;
@@ -61,13 +62,12 @@ public void CodeViewer_Should_Call_Highlight_On_FirstRender()
61
62
{
63
var jsMock = Context.JSInterop.SetupVoid("MudCode.highlight", _ => true);
64
- var comp = Context.Render<MudCodeViewer>(p => p
65
- .Add(x => x.Code, "test")
66
- );
+ Context.Render<MudCodeViewer>(p => p.Add(x => x.Code, "test"));
67
68
- jsMock.VerifyInvoke("MudCode.highlight");
+ jsMock.Invocations.Count.Should().BeGreaterThanOrEqualTo(1);
69
}
70
+
71
[Test]
72
public void CodeViewer_Language_Change_Should_Update_Class()
73
0 commit comments