Skip to content

Commit 596f558

Browse files
committed
add testcase for provider
1 parent 27b93a0 commit 596f558

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ControllerProvider/controller_provider.test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class TestController extends Controller<number> {
88
}
99

1010
class TestControllerSub extends TestController {}
11+
class TestControllerSub2 extends TestController {}
1112

1213
const DisplayRendered = () => {
1314
useProvider(TestController)
@@ -54,7 +55,7 @@ it('render provided create without error', () => {
5455

5556
it('render provided create ctor without error', () => {
5657
const { container } = render(
57-
<ControllerProvider ctor={TestController} source={() => new TestControllerSub()}>
58+
<ControllerProvider ctor={TestController} source={() => new TestControllerSub2()}>
5859
<DisplayRendered />
5960
</ControllerProvider>,
6061
)

0 commit comments

Comments
 (0)