Skip to content

Commit

Permalink
reverting the rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunil Pai committed May 10, 2019
1 parent 6243d19 commit 7aaef6f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions src/__tests__/profiling-test.js
Expand Up @@ -129,7 +129,7 @@ describe('profiling', () => {
const rendererID = utils.getRendererID();
const rootID = store.roots[0];

await utils.actAsync(() =>
await utils.actSuspense(() =>
TestRenderer.create(
<React.Suspense fallback={null}>
<Suspender
Expand All @@ -145,7 +145,7 @@ describe('profiling', () => {

exportImportHelper(rendererID, rootID);

await utils.actAsync(() =>
await utils.actSuspense(() =>
TestRenderer.create(
<React.Suspense fallback={null}>
<Suspender
Expand Down Expand Up @@ -218,7 +218,7 @@ describe('profiling', () => {
const rootID = store.roots[0];

for (let commitIndex = 0; commitIndex < 4; commitIndex++) {
await utils.actAsync(() => {
await utils.actSuspense(() => {
TestRenderer.create(
<React.Suspense fallback={null}>
<Suspender
Expand All @@ -237,7 +237,7 @@ describe('profiling', () => {
exportImportHelper(rendererID, rootID);

for (let commitIndex = 0; commitIndex < 4; commitIndex++) {
await utils.actAsync(() => {
await utils.actSuspense(() => {
TestRenderer.create(
<React.Suspense fallback={null}>
<Suspender
Expand Down Expand Up @@ -311,7 +311,7 @@ describe('profiling', () => {
const rootID = store.roots[0];

for (let index = 0; index < store.numElements; index++) {
await utils.actAsync(() => {
await utils.actSuspense(() => {
const fiberID = store.getElementIDAtIndex(index);
if (fiberID == null) {
throw Error(`Unexpected null ID for element at index ${index}`);
Expand All @@ -334,7 +334,7 @@ describe('profiling', () => {
exportImportHelper(rendererID, rootID);

for (let index = 0; index < store.numElements; index++) {
await utils.actAsync(() => {
await utils.actSuspense(() => {
const fiberID = store.getElementIDAtIndex(index);
if (fiberID == null) {
throw Error(`Unexpected null ID for element at index ${index}`);
Expand Down Expand Up @@ -413,7 +413,7 @@ describe('profiling', () => {
const rendererID = utils.getRendererID();
const rootID = store.roots[0];

await utils.actAsync(() =>
await utils.actSuspense(() =>
TestRenderer.create(
<React.Suspense fallback={null}>
<Suspender
Expand All @@ -429,7 +429,7 @@ describe('profiling', () => {

exportImportHelper(rendererID, rootID);

await utils.actAsync(() =>
await utils.actSuspense(() =>
TestRenderer.create(
<React.Suspense fallback={null}>
<Suspender
Expand Down
6 changes: 3 additions & 3 deletions src/__tests__/profilingCharts-test.js
Expand Up @@ -97,7 +97,7 @@ describe('profiling charts', () => {
for (let commitIndex = 0; commitIndex < 2; commitIndex++) {
suspenseResolved = false;

await utils.actAsync(() =>
await utils.actSuspense(() =>
TestRenderer.create(
<React.Suspense fallback={null}>
<Suspender
Expand Down Expand Up @@ -187,7 +187,7 @@ describe('profiling charts', () => {
for (let commitIndex = 0; commitIndex < 2; commitIndex++) {
suspenseResolved = false;

await utils.actAsync(() =>
await utils.actSuspense(() =>
TestRenderer.create(
<React.Suspense fallback={null}>
<Suspender
Expand Down Expand Up @@ -268,7 +268,7 @@ describe('profiling charts', () => {
for (let commitIndex = 0; commitIndex < 2; commitIndex++) {
suspenseResolved = false;

await utils.actAsync(() =>
await utils.actSuspense(() =>
TestRenderer.create(
<React.Suspense fallback={null}>
<Suspender
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/profilingCommitTreeBuilder-test.js
Expand Up @@ -67,7 +67,7 @@ describe('commit tree', () => {
for (let commitIndex = 0; commitIndex < 4; commitIndex++) {
suspenseResolved = false;

await utils.actAsync(() =>
await utils.actSuspense(() =>
TestRenderer.create(
<React.Suspense fallback={null}>
<Suspender
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/utils.js
Expand Up @@ -14,7 +14,7 @@ export function act(callback: Function): void {
});
}

export async function actAsync(cb: () => *): Promise<void> {
export async function actSuspense(cb: () => *): Promise<void> {
const TestUtils = require('react-dom/test-utils');

// $FlowFixMe Flow doens't know about "await act()" yet
Expand Down

0 comments on commit 7aaef6f

Please sign in to comment.