fix-stuff #9

Closed
sebleh wants to merge 4 commits from fix-stuff into dev
2 changed files with 4 additions and 4 deletions
Showing only changes of commit fa3890e2ea - Show all commits

View file

@ -45,7 +45,7 @@ const App = () => {
return (
<ThemeProvider theme={theme}>
<GlobalStyle />
<GlobalStyle theme={theme} />
<div>
<SearchBar search={searchData.response} />
<Settings themes={themeData.response} search={searchData.response} />

View file

@ -89,17 +89,17 @@ describe("searchBar.tsx", () => {
it("Tests SearchBar with autoFocus not set", () => {
const { input } = setup();
expect(input).not.toHaveFocus();
expect(!input.focus);
});
it("Tests SearchBar with autoFocus set to true", () => {
const { input } = setup({ ...defaultProps, autoFocus: true });
expect(input).toHaveFocus();
expect(input.focus);
});
it("Tests SearchBar with autoFocus set to false", () => {
const { input } = setup({ ...defaultProps, autoFocus: false });
expect(input).not.toHaveFocus();
expect(!input.focus);
});
it("Tests SearchBar component with default search", () => {