From 43fe3fcf752f3f46b5301621d3226e899270ff40 Mon Sep 17 00:00:00 2001 From: mai <168496714@qq.com> Date: Tue, 6 Feb 2018 00:02:43 +0800 Subject: [PATCH] Add Observer prop test suit --- test/observer.test.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/observer.test.js b/test/observer.test.js index 77e8774a..732380a7 100644 --- a/test/observer.test.js +++ b/test/observer.test.js @@ -807,4 +807,20 @@ describe("use Observer inject and render sugar should work ", () => { await asyncReactDOMRender(, testRoot) expect(testRoot.querySelector("span").innerHTML).toBe("hello world") }) + + test("show error when using children and render at same time ", async () => { + const msg = [] + const baseError = console.error + console.error = m => msg.push(m) + + const Comp = () => ( +