From 3496b3b926e2de71ce84861a1bfa3d453eff4ad6 Mon Sep 17 00:00:00 2001 From: Jimmy Jia Date: Tue, 17 Nov 2015 14:11:12 -0500 Subject: [PATCH] Fix using this before super --- modules/__tests__/Router-test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/__tests__/Router-test.js b/modules/__tests__/Router-test.js index e50d6bafdb..fd2886ae88 100644 --- a/modules/__tests__/Router-test.js +++ b/modules/__tests__/Router-test.js @@ -255,7 +255,8 @@ describe('Router', function () { const Child = () => child class LabelWrapper extends Component { - constructor() { + constructor(props, context) { + super(props, context) this.createElement = this.createElement.bind(this) }