Skip to content

Commit 86e085e

Browse files
committed
Fix test not using state var
1 parent f73909e commit 86e085e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/deriving-state.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ new MyRuleTester().run("/deriving-state", {
8484
const [results, setResults] = useState();
8585
8686
useEffect(() => {
87-
fetch('/search').then((data) => {
87+
fetch('/search?query=' + query).then((data) => {
8888
setResults(data);
8989
});
9090
}, [query]);

0 commit comments

Comments
 (0)