aboutsummaryrefslogtreecommitdiff
path: root/thirdparty/preact/test/browser/lifecycle.js
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/preact/test/browser/lifecycle.js')
-rw-r--r--thirdparty/preact/test/browser/lifecycle.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/thirdparty/preact/test/browser/lifecycle.js b/thirdparty/preact/test/browser/lifecycle.js
index d6204ca8f..4deb92163 100644
--- a/thirdparty/preact/test/browser/lifecycle.js
+++ b/thirdparty/preact/test/browser/lifecycle.js
@@ -3,6 +3,8 @@ import { h, render, rerender, Component } from '../../src/preact';
let spyAll = obj => Object.keys(obj).forEach( key => sinon.spy(obj,key) );
+const EMPTY_CHILDREN = [];
+
describe('Lifecycle methods', () => {
let scratch;
@@ -50,7 +52,7 @@ describe('Lifecycle methods', () => {
}
class Inner extends Component {
componentWillUpdate(nextProps, nextState) {
- expect(nextProps).to.be.deep.equal({i: 1});
+ expect(nextProps).to.be.deep.equal({ children:EMPTY_CHILDREN, i: 1 });
expect(nextState).to.be.deep.equal({});
}
render() {