diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-08 15:07:07 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-08 15:19:39 +0100 |
commit | afb9fba64be1f15a3ce3ed31214a704e73e5e8bb (patch) | |
tree | 6f69712a8c976178c05144483ff0c8e9b09445c8 /thirdparty/preact/test/browser/lifecycle.js | |
parent | b37e7762bb5492cbd6788863232e7d2634ab5e5c (diff) | |
parent | 6e5fb04d3f3f9a6cd43ac20896d73321dd079f96 (diff) |
Update preact version
Diffstat (limited to 'thirdparty/preact/test/browser/lifecycle.js')
-rw-r--r-- | thirdparty/preact/test/browser/lifecycle.js | 4 |
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() { |