From 3404c69cbf69ae5f36cddf9b016f07c7d0338bb0 Mon Sep 17 00:00:00 2001 From: Toru Kobayashi Date: Tue, 28 Nov 2017 13:32:30 +0900 Subject: [PATCH] Fix comments --- packages/enzyme/src/ShallowWrapper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/enzyme/src/ShallowWrapper.js b/packages/enzyme/src/ShallowWrapper.js index 9b72f2f44..53fb6f659 100644 --- a/packages/enzyme/src/ShallowWrapper.js +++ b/packages/enzyme/src/ShallowWrapper.js @@ -259,7 +259,7 @@ class ShallowWrapper { } this[RENDERER].batchedUpdates(() => { // When shouldComponentUpdate returns false we shouldn't call componentDidUpdate. - // so we spy shouldComponentUpdate to know the result. + // so we spy shouldComponentUpdate to get the result. let shouldRender = true; let spy; if ( @@ -342,7 +342,7 @@ class ShallowWrapper { const prevState = instance.state; const prevContext = instance.context; // When shouldComponentUpdate returns false we shouldn't call componentDidUpdate. - // so we spy shouldComponentUpdate to know the result. + // so we spy shouldComponentUpdate to get the result. let spy; let shouldRender = true; if (