Skip to content

Commit

Permalink
Replace wait with await Promise.resolve()
Browse files Browse the repository at this point in the history
  • Loading branch information
George Schneeloch committed May 20, 2019
1 parent ec4fbf7 commit c981658
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/js/containers/pages/CheckoutPage_test.js
Expand Up @@ -18,7 +18,7 @@ import {
formatPrice,
formatRunTitle
} from "../../lib/ecommerce"
import { assertRaises, wait } from "../../lib/util"
import { assertRaises } from "../../lib/util"
import { PRODUCT_TYPE_COURSERUN, PRODUCT_TYPE_PROGRAM } from "../../constants"

describe("CheckoutPage", () => {
Expand Down Expand Up @@ -205,7 +205,7 @@ describe("CheckoutPage", () => {
}
)
// wait for componentDidMount to resolve
await wait(0)
await Promise.resolve()
sinon.assert.calledWith(
helper.handleRequestStub,
"/api/basket/",
Expand Down

0 comments on commit c981658

Please sign in to comment.