Skip to content

Commit 45659ed

Browse files
committed
Import from the index to make sure it exports things correctly.
1 parent eddfec0 commit 45659ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Async.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "jest-dom/extend-expect"
22
import React from "react"
33
import { render, fireEvent, cleanup, waitForElement } from "react-testing-library"
4-
import Async, { createInstance } from "./Async"
4+
import Async, { createInstance } from "./index"
55

66
const abortCtrl = { abort: jest.fn() }
77
window.AbortController = jest.fn().mockImplementation(() => abortCtrl)

src/useAsync.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import "jest-dom/extend-expect"
22
import React from "react"
33
import { render, fireEvent, cleanup, waitForElement } from "react-testing-library"
4-
import { useAsync, useFetch } from "."
4+
import { useAsync, useFetch } from "./index"
55

66
const abortCtrl = { abort: jest.fn(), signal: "SIGNAL" }
77
window.AbortController = jest.fn(() => abortCtrl)

0 commit comments

Comments
 (0)