@samitouri / QOS-React-2 / commits / 7aaef6f41f

reverting the rename

Sunil Pai committed May 10, 2019 at 12:18 UTC 7aaef6f41fa0dc0b13554a2e0800a34187a4ddfc
4 files changed +13 -13
src/__tests__/profiling-test.js
+8 -8
@@ -129,7 +129,7 @@ describe('profiling', () => {
129 const rendererID = utils.getRendererID();
130 const rootID = store.roots[0];
131
132 - await utils.actAsync(() =>
132 + await utils.actSuspense(() =>
133 TestRenderer.create(
134 <React.Suspense fallback={null}>
135 <Suspender
@@ -145,7 +145,7 @@ describe('profiling', () => {
145
146 exportImportHelper(rendererID, rootID);
147
148 - await utils.actAsync(() =>
148 + await utils.actSuspense(() =>
149 TestRenderer.create(
150 <React.Suspense fallback={null}>
151 <Suspender
@@ -218,7 +218,7 @@ describe('profiling', () => {
218 const rootID = store.roots[0];
219
220 for (let commitIndex = 0; commitIndex < 4; commitIndex++) {
221 - await utils.actAsync(() => {
221 + await utils.actSuspense(() => {
222 TestRenderer.create(
223 <React.Suspense fallback={null}>
224 <Suspender
@@ -237,7 +237,7 @@ describe('profiling', () => {
237 exportImportHelper(rendererID, rootID);
238
239 for (let commitIndex = 0; commitIndex < 4; commitIndex++) {
240 - await utils.actAsync(() => {
240 + await utils.actSuspense(() => {
241 TestRenderer.create(
242 <React.Suspense fallback={null}>
243 <Suspender
@@ -311,7 +311,7 @@ describe('profiling', () => {
311 const rootID = store.roots[0];
312
313 for (let index = 0; index < store.numElements; index++) {
314 - await utils.actAsync(() => {
314 + await utils.actSuspense(() => {
315 const fiberID = store.getElementIDAtIndex(index);
316 if (fiberID == null) {
317 throw Error(`Unexpected null ID for element at index ${index}`);
@@ -334,7 +334,7 @@ describe('profiling', () => {
334 exportImportHelper(rendererID, rootID);
335
336 for (let index = 0; index < store.numElements; index++) {
337 - await utils.actAsync(() => {
337 + await utils.actSuspense(() => {
338 const fiberID = store.getElementIDAtIndex(index);
339 if (fiberID == null) {
340 throw Error(`Unexpected null ID for element at index ${index}`);
@@ -413,7 +413,7 @@ describe('profiling', () => {
413 const rendererID = utils.getRendererID();
414 const rootID = store.roots[0];
415
416 - await utils.actAsync(() =>
416 + await utils.actSuspense(() =>
417 TestRenderer.create(
418 <React.Suspense fallback={null}>
419 <Suspender
@@ -429,7 +429,7 @@ describe('profiling', () => {
429
430 exportImportHelper(rendererID, rootID);
431
432 - await utils.actAsync(() =>
432 + await utils.actSuspense(() =>
433 TestRenderer.create(
434 <React.Suspense fallback={null}>
435 <Suspender
src/__tests__/profilingCharts-test.js
+3 -3
@@ -97,7 +97,7 @@ describe('profiling charts', () => {
97 for (let commitIndex = 0; commitIndex < 2; commitIndex++) {
98 suspenseResolved = false;
99
100 - await utils.actAsync(() =>
100 + await utils.actSuspense(() =>
101 TestRenderer.create(
102 <React.Suspense fallback={null}>
103 <Suspender
@@ -187,7 +187,7 @@ describe('profiling charts', () => {
187 for (let commitIndex = 0; commitIndex < 2; commitIndex++) {
188 suspenseResolved = false;
189
190 - await utils.actAsync(() =>
190 + await utils.actSuspense(() =>
191 TestRenderer.create(
192 <React.Suspense fallback={null}>
193 <Suspender
@@ -268,7 +268,7 @@ describe('profiling charts', () => {
268 for (let commitIndex = 0; commitIndex < 2; commitIndex++) {
269 suspenseResolved = false;
270
271 - await utils.actAsync(() =>
271 + await utils.actSuspense(() =>
272 TestRenderer.create(
273 <React.Suspense fallback={null}>
274 <Suspender
src/__tests__/profilingCommitTreeBuilder-test.js
+1 -1
@@ -67,7 +67,7 @@ describe('commit tree', () => {
67 for (let commitIndex = 0; commitIndex < 4; commitIndex++) {
68 suspenseResolved = false;
69
70 - await utils.actAsync(() =>
70 + await utils.actSuspense(() =>
71 TestRenderer.create(
72 <React.Suspense fallback={null}>
73 <Suspender
src/__tests__/utils.js
+1 -1
@@ -14,7 +14,7 @@ export function act(callback: Function): void {
14 });
15 }
16
17 -export async function actAsync(cb: () => *): Promise<void> {
17 +export async function actSuspense(cb: () => *): Promise<void> {
18 const TestUtils = require('react-dom/test-utils');
19
20 // $FlowFixMe Flow doens't know about "await act()" yet