diff options
Diffstat (limited to 'integration/bunjs-only-snippets/transpiler.test.js')
-rw-r--r-- | integration/bunjs-only-snippets/transpiler.test.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/integration/bunjs-only-snippets/transpiler.test.js b/integration/bunjs-only-snippets/transpiler.test.js index 30fc2afde..f8da4c18c 100644 --- a/integration/bunjs-only-snippets/transpiler.test.js +++ b/integration/bunjs-only-snippets/transpiler.test.js @@ -358,12 +358,9 @@ export var ComponentThatChecksDefaultPropsAndHasChildren = { type: Hello, key: null, ref: null, - props: !Hello.defaultProps ? { + props: __merge({ children: "my child" - } : { - ...Hello.defaultProps, - children: "my child" - }, + }, Hello.defaultProps), _owner: null }; export var ComponentThatHasSpreadCausesDeopt = jsx(Hello, { |