Skip to content

Commit

Permalink
✏️ update hook name in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Sep 6, 2024
1 parent 42f2aba commit efa1233
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/browser.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ afterEach(() => {
} catch {}
});

describe("useLocalStorageState()", () => {
describe("useStorageState()", () => {
test("defaultValue accepts lazy initializer (like useState)", () => {
const { result } = renderHook(() =>
useStorageState("todos", {
Expand Down Expand Up @@ -492,7 +492,7 @@ describe("useLocalStorageState()", () => {
expect(queryByText(/^1$/u)).toBeTruthy();
});

test(`calling setValue() from useLayoutEffect() should update all useLocalStorageState() instances`, () => {
test(`calling setValue() from useLayoutEffect() should update all useStorageState() instances`, () => {
function App() {
return (
<>
Expand Down
2 changes: 1 addition & 1 deletion test/server.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ beforeEach(() => {
);
});

describe("useLocalStorageState()", () => {
describe("useStorageState()", () => {
describe("SSR support", () => {
test("defaultValue accepts lazy initializer (like useState)", () => {
const { result } = renderHookOnServer(() =>
Expand Down

0 comments on commit efa1233

Please sign in to comment.