Skip to content

Commit c7a6de7

Browse files
committed
feat(with-data) Add comment about somewhat broken test
1 parent e7e6659 commit c7a6de7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hocs/withData/index.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,8 @@ describe('withData', () => {
351351

352352
render(comp, { userId: 'peter' }, c => { stateContainer = c; }, ({ userId }) => ({ userId }));
353353

354+
// the first render ideally shouldn't wait, if the promise resolves
355+
// immediately
354356
return wait(minimumPendingTimeWithThreshold).then(() => {
355357
stateContainer.setState({ userId: 'gernot' });
356358
return wait(minimumPendingTimeWithThreshold).then(() => {

0 commit comments

Comments
 (0)