Skip to content

Commit

Permalink
chore: lint test file
Browse files Browse the repository at this point in the history
  • Loading branch information
wypratama committed Sep 7, 2024
1 parent 949920c commit b3cc120
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/useReactive.test.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { renderHook, act } from '@testing-library/react-hooks';
import useReactive from '../src/index';
import structuredClone from "@ungap/structured-clone";
import structuredClone from '@ungap/structured-clone';

beforeAll(() => {
// Attach the polyfill as a Global function
if (!("structuredClone" in globalThis)) {
if (!('structuredClone' in globalThis)) {
globalThis.structuredClone = structuredClone as any;
}
})
});

describe('useReactive', () => {
it('should update a single property', () => {
const { result } = renderHook(() => useReactive({ prop: 0 }));
Expand Down

0 comments on commit b3cc120

Please sign in to comment.