Skip to content

Commit bd59a5d

Browse files
committed
test: 更新单元测试
1 parent e06a967 commit bd59a5d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

test/UnitTest/Components/LayoutTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ public void Authorized_Ok()
581581
pb.Add(a => a.AdditionalAssemblies, new Assembly[] { GetType().Assembly });
582582
pb.Add(a => a.OnAuthorizing, url => Task.FromResult(true));
583583
});
584-
cut.Contains("<section class=\"layout\" style=\"--bb-layout-header-height: 0px; --bb-layout-footer-height: 0px;\"><main class=\"layout-main\"></main></section>");
584+
cut.MarkupMatches("<section id:ignore class=\"layout\" style=\"--bb-layout-header-height: 0px; --bb-layout-footer-height: 0px;\"><main class=\"layout-main\"></main></section>");
585585
Context.DisposeComponents();
586586
}
587587
}

test/UnitTest/Services/ThrottleTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ await Assert.ThrowsAnyAsync<InvalidOperationException>(() => dispatcher.Throttle
9595
{
9696
count++;
9797
});
98-
Assert.Equal(2, count);
9998
}
10099

101100
[Fact]

0 commit comments

Comments
 (0)