Commit 2a5186bc authored by Duvara Nishaharan's avatar Duvara Nishaharan
Browse files

#6 rettet opp i test

parent c7013b1e
...@@ -49,7 +49,6 @@ ...@@ -49,7 +49,6 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"cypress": "^8.7.0", "cypress": "^8.7.0"
"jest": "^27.3.1"
} }
} }
...@@ -14,10 +14,10 @@ exports[`FocusInput matches snapshot 1`] = ` ...@@ -14,10 +14,10 @@ exports[`FocusInput matches snapshot 1`] = `
> >
<button <button
class="btn btn-outline-secondary" class="btn btn-outline-secondary"
id="search_button" id="buttonclick"
type="button" type="button"
> >
Search Search
</button> </button>
</div> </div>
</div> </div>
......
...@@ -14,7 +14,7 @@ import { searchbarStore } from "./SearchbarStore"; ...@@ -14,7 +14,7 @@ import { searchbarStore } from "./SearchbarStore";
expect(container.firstChild).toMatchSnapshot(); expect(container.firstChild).toMatchSnapshot();
}); });
describe('Component: Searchvar', () => { describe('Component: Searchbar', () => {
const items =["Norway", "India", "Germany"]; const items =["Norway", "India", "Germany"];
describe("<searchbar />", () => { describe("<searchbar />", () => {
......
...@@ -66,7 +66,7 @@ export class Searchbar extends React.Component<IProps, IState> { ...@@ -66,7 +66,7 @@ export class Searchbar extends React.Component<IProps, IState> {
<input type="text" className="form-control" placeholder="Enter Country" onInput={(e)=>{this.setState({search_text: e.currentTarget.value})}}/> <input type="text" className="form-control" placeholder="Enter Country" onInput={(e)=>{this.setState({search_text: e.currentTarget.value})}}/>
<div className="input-group-append"> <div className="input-group-append">
<button onClick={() => this.onSearch()} <button onClick={() => this.onSearch()}
className="btn btn-outline-secondary" type="button" id="buttonclick"><Search/>Search</button> className="btn btn-outline-secondary" type="button" id="buttonclick">Search</button>
</div> </div>
{this.state.active } {this.state.active }
</div> </div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment